Skip to content

Commit edd9f72

Browse files
Vladimir Davydovtorvalds
authored andcommitted
mm: oom: do not reap task if there are live threads in threadgroup
If the current process is exiting, we don't invoke oom killer, instead we give it access to memory reserves and try to reap its mm in case nobody is going to use it. There's a mistake in the code performing this check - we just ignore any process of the same thread group no matter if it is exiting or not - see try_oom_reaper. Fix it. Link: http://lkml.kernel.org/r/1464087628-7318-1-git-send-email-vdavydov@virtuozzo.com Fixes: 3ef22df ("oom, oom_reaper: try to reap tasks which skip regular OOM killer path")Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com> Acked-by: Michal Hocko <mhocko@suse.com> Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9ecd10b commit edd9f72

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mm/oom_kill.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,6 @@ void try_oom_reaper(struct task_struct *tsk)
611611

612612
if (!process_shares_mm(p, mm))
613613
continue;
614-
if (same_thread_group(p, tsk))
615-
continue;
616614
if (fatal_signal_pending(p))
617615
continue;
618616

0 commit comments

Comments
 (0)