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;