summaryrefslogtreecommitdiffstats
path: root/mm/page_isolation.c
diff options
context:
space:
mode:
authorMichal Hocko <mhocko@suse.com>2016-04-01 14:31:34 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-04-01 17:03:37 -0500
commitaf8e15cc85a253155fdcea707588bf6ddfc0be2e (patch)
treef2e5c0a39e0916f76310e4f923f00055498fdb62 /mm/page_isolation.c
parentbbe3de2560280c0420d36a192e69f2772e893cf4 (diff)
downloadlinux-af8e15cc85a253155fdcea707588bf6ddfc0be2e.tar.gz
linux-af8e15cc85a253155fdcea707588bf6ddfc0be2e.tar.bz2
linux-af8e15cc85a253155fdcea707588bf6ddfc0be2e.zip
oom, oom_reaper: do not enqueue task if it is on the oom_reaper_list head
Commit bb29902a7515 ("oom, oom_reaper: protect oom_reaper_list using simpler way") has simplified the check for tasks already enqueued for the oom reaper by checking tsk->oom_reaper_list != NULL. This check is not sufficient because the tsk might be the head of the queue without any other tasks queued and then we would simply lockup looping on the same task. Fix the condition by checking for the head as well. Fixes: bb29902a7515 ("oom, oom_reaper: protect oom_reaper_list using simpler way") Signed-off-by: Michal Hocko <mhocko@suse.com> Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_isolation.c')
0 files changed, 0 insertions, 0 deletions