Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207202
b: refs/heads/master
c: 455c0e5
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Aug 10, 2010
1 parent d8d287e commit 764f9ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: a9877cc2937889e5669114f28612b494384152a4
refs/heads/master: 455c0e5fb03b67fa62bd12e3abe3fa484b9960c5
9 changes: 3 additions & 6 deletions trunk/mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,11 @@ static struct task_struct *select_bad_process(unsigned long *ppoints,
for_each_process(p) {
unsigned long points;

/*
* skip kernel threads and tasks which have already released
* their mm.
*/
/* skip tasks that have already released their mm */
if (!p->mm)
continue;
/* skip the init task */
if (is_global_init(p))
/* skip the init task and kthreads */
if (is_global_init(p) || (p->flags & PF_KTHREAD))
continue;
if (mem && !task_in_mem_cgroup(p, mem))
continue;
Expand Down

0 comments on commit 764f9ca

Please sign in to comment.