From ffa78a1691f3d8998fbbab569e5b34acdd84bbbd Mon Sep 17 00:00:00 2001 From: Nick Piggin Date: Mon, 25 Sep 2006 23:31:30 -0700 Subject: [PATCH] --- yaml --- r: 35604 b: refs/heads/master c: 4a3ede107e422a0c53d28024b0aa902ca22a8768 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/mm/oom_kill.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 9857abd9f18f..fe66c11245ee 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 50ec3bbffbe8a96347c54832d48110a5bc9e9ff8 +refs/heads/master: 4a3ede107e422a0c53d28024b0aa902ca22a8768 diff --git a/trunk/mm/oom_kill.c b/trunk/mm/oom_kill.c index 0131bae2a16d..55a05f1ef76d 100644 --- a/trunk/mm/oom_kill.c +++ b/trunk/mm/oom_kill.c @@ -204,8 +204,6 @@ static struct task_struct *select_bad_process(unsigned long *ppoints) /* skip the init task with pid == 1 */ if (p->pid == 1) continue; - if (p->oomkilladj == OOM_DISABLE) - continue; /* * This is in the process of releasing memory so wait for it @@ -230,6 +228,8 @@ static struct task_struct *select_bad_process(unsigned long *ppoints) } return ERR_PTR(-1UL); } + if (p->oomkilladj == OOM_DISABLE) + continue; if (p->flags & PF_SWAPOFF) return p;