Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207206
b: refs/heads/master
c: 74ab7f1
h: refs/heads/master
v: v3
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Aug 10, 2010
1 parent 652c265 commit 35a2ae5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c55db95788a2a55a77f5a3ced1e59578710440b2
refs/heads/master: 74ab7f1d3f22ccb02f8b14f1f2375416b1ab0adb
11 changes: 3 additions & 8 deletions trunk/mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ static struct task_struct *select_bad_process(unsigned long *ppoints,

/**
* dump_tasks - dump current memory state of all system tasks
* @mem: target memory controller
* @mem: current's memory controller, if constrained
*
* Dumps the current memory state of all system tasks, excluding kernel threads.
* State information includes task's pid, uid, tgid, vm size, rss, cpu, oom_adj
Expand All @@ -342,11 +342,6 @@ static void dump_tasks(const struct mem_cgroup *mem)
printk(KERN_INFO "[ pid ] uid tgid total_vm rss cpu oom_adj "
"name\n");
for_each_process(p) {
/*
* We don't have is_global_init() check here, because the old
* code do that. printing init process is not big matter. But
* we don't hope to make unnecessary compatibility breaking.
*/
if (p->flags & PF_KTHREAD)
continue;
if (mem && !task_in_mem_cgroup(p, mem))
Expand All @@ -355,8 +350,8 @@ static void dump_tasks(const struct mem_cgroup *mem)
task = find_lock_task_mm(p);
if (!task) {
/*
* Probably oom vs task-exiting race was happen and ->mm
* have been detached. thus there's no need to report
* This is a kthread or all of p's threads have already
* detached their mm's. There's no need to report
* them; they can't be oom killed anyway.
*/
continue;
Expand Down

0 comments on commit 35a2ae5

Please sign in to comment.