oom, oom_reaper: protect oom_reaper_list using simpler way
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fri, 25 Mar 2016 21:20:44 +0000 (14:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Mar 2016 23:37:42 +0000 (16:37 -0700)
commitbb29902a7515208846114b3b36a4281a9bbf766a
tree95eafdcebc4f9c100db32ddb8c7ac0099a252555
parente26796066fdf929cbba22dabb801808f986acdb9
oom, oom_reaper: protect oom_reaper_list using simpler way

"oom, oom_reaper: disable oom_reaper for oom_kill_allocating_task" tried
to protect oom_reaper_list using MMF_OOM_KILLED flag.  But we can do it
by simply checking tsk->oom_reaper_list != NULL.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/sched.h
mm/oom_kill.c