diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 2d556fd8ab1e5a82a2e473cba953d78ae786a45e..4d8748d268569cb42de5f0aa27e6ccc038f54013 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1229,7 +1229,7 @@ int mem_cgroup_scan_tasks(struct mem_cgroup *memcg, struct css_task_iter it; struct task_struct *task; - css_task_iter_start(&iter->css, 0, &it); + css_task_iter_start(&iter->css, CSS_TASK_ITER_PROCS, &it); while (!ret && (task = css_task_iter_next(&it))) ret = fn(task, arg); css_task_iter_end(&it); diff --git a/mm/oom_kill.c b/mm/oom_kill.c index f1d323e1986133847bf6365cb763d282aa144d8c..bcbac9de37adae50a330732dca56c3aed7558ed4 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -354,9 +354,6 @@ int oom_evaluate_task(struct task_struct *task, void *arg) if (points < oc->chosen_points) goto next; - /* Prefer thread group leaders for display purposes */ - if (points == oc->chosen_points && thread_group_leader(oc->chosen)) - goto next; select: if (oc->chosen) put_task_struct(oc->chosen);