diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-12 15:43:39 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-12 15:43:39 +0100 |
commit | eb42c75878e4d13941dcbcf2ef1027c257b099a6 (patch) | |
tree | f0fa257a00b4cac528b79724f59b076f30b1dd3d /mm/oom_kill.c | |
parent | 9868ee63b896ee4d2ceb8c292e88d7f4e66caaf9 (diff) | |
parent | f21f237cf55494c3a4209de323281a3b0528da10 (diff) | |
download | linux-eb42c75878e4d13941dcbcf2ef1027c257b099a6.tar.bz2 |
Merge branch 'linus' into x86/crashdump
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); * badness - calculate a numeric value for how bad this task has been * @p: task struct of which task we should calculate * @uptime: current uptime in seconds - * @mem: target memory controller * * The formula used is relatively simple and documented inline in the * 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) continue; if (mem && !task_in_mem_cgroup(p, mem)) continue; + if (!thread_group_leader(p)) + continue; task_lock(p); printk(KERN_INFO "[%5d] %5d %5d %8lu %8lu %3d %3d %s\n", |