Skip to content

Commit 19b4586

Browse files
kosakitorvalds
authored andcommitted
oom: remove child->mm check from oom_kill_process()
The current "child->mm == p->mm" check prevents selection of vfork()ed task. But we don't have any reason to don't consider vfork(). Removed. Signed-off-by: KOSAKI Motohiro <[email protected]> Cc: Minchan Kim <[email protected]> Cc: David Rientjes <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Oleg Nesterov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent df1090a commit 19b4586

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mm/oom_kill.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,6 @@ static int oom_kill_process(struct task_struct *p, gfp_t gfp_mask, int order,
479479
list_for_each_entry(child, &t->children, sibling) {
480480
unsigned long child_points;
481481

482-
if (child->mm == p->mm)
483-
continue;
484-
485482
/* badness() returns 0 if the thread is unkillable */
486483
child_points = badness(child, mem, nodemask,
487484
uptime.tv_sec);

0 commit comments

Comments
 (0)