mm,oom_reaper: remove pointless kthread_run() error check
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 16 Nov 2017 01:39:10 +0000 (17:39 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Nov 2017 02:21:07 +0000 (18:21 -0800)
commitc50842c8e1cddcdb69d3ece4f4df005a0e6c5ceb
tree3624b44f543ac020d49eb9e1b768049fe3066da8
parente492080e640c2d1235ddf3441cae634cfffef7e1
mm,oom_reaper: remove pointless kthread_run() error check

Since oom_init() is called before userspace processes start, memory
allocation failure for creating the OOM reaper kernel thread will let
the OOM killer call panic() rather than wake up the OOM reaper.

Link: http://lkml.kernel.org/r/1510137800-4602-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/oom_kill.c