aboutsummaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/oom_kill.c')
-rw-r--r--mm/oom_kill.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 64751dc9d997..ef5084dbc793 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -65,13 +65,6 @@ unsigned long badness(struct task_struct *p, unsigned long uptime,
65 return 0; 65 return 0;
66 } 66 }
67 67
68#ifdef CONFIG_CGROUP_MEM_CONT
69 if (mem != NULL && mm->mem_cgroup != mem) {
70 task_unlock(p);
71 return 0;
72 }
73#endif
74
75 /* 68 /*
76 * The memory size of the process is the basis for the badness. 69 * The memory size of the process is the basis for the badness.
77 */ 70 */
@@ -223,6 +216,8 @@ static struct task_struct *select_bad_process(unsigned long *ppoints,
223 /* skip the init task */ 216 /* skip the init task */
224 if (is_global_init(p)) 217 if (is_global_init(p))
225 continue; 218 continue;
219 if (mem && !task_in_mem_cgroup(p, mem))
220 continue;
226 221
227 /* 222 /*
228 * This task already has access to memory reserves and is 223 * This task already has access to memory reserves and is