diff options
Diffstat (limited to 'mm/oom_kill.c')
| -rw-r--r-- | mm/oom_kill.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 64e5b4bcd964..a0a01902f551 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
| @@ -38,7 +38,6 @@ static DEFINE_SPINLOCK(zone_scan_mutex); | |||
| 38 | * badness - calculate a numeric value for how bad this task has been | 38 | * badness - calculate a numeric value for how bad this task has been |
| 39 | * @p: task struct of which task we should calculate | 39 | * @p: task struct of which task we should calculate |
| 40 | * @uptime: current uptime in seconds | 40 | * @uptime: current uptime in seconds |
| 41 | * @mem: target memory controller | ||
| 42 | * | 41 | * |
| 43 | * The formula used is relatively simple and documented inline in the | 42 | * The formula used is relatively simple and documented inline in the |
| 44 | * function. The main rationale is that we want to select a good task | 43 | * function. The main rationale is that we want to select a good task |
| @@ -295,6 +294,8 @@ static void dump_tasks(const struct mem_cgroup *mem) | |||
| 295 | continue; | 294 | continue; |
| 296 | if (mem && !task_in_mem_cgroup(p, mem)) | 295 | if (mem && !task_in_mem_cgroup(p, mem)) |
| 297 | continue; | 296 | continue; |
| 297 | if (!thread_group_leader(p)) | ||
| 298 | continue; | ||
| 298 | 299 | ||
| 299 | task_lock(p); | 300 | task_lock(p); |
| 300 | printk(KERN_INFO "[%5d] %5d %5d %8lu %8lu %3d %3d %s\n", | 301 | printk(KERN_INFO "[%5d] %5d %5d %8lu %8lu %3d %3d %s\n", |
