Skip to contentSkip to conversation

mm,oom_reaper: remove pointless kthread_run() error check

PATCH New [email protected] 1 participant 1 message Nov 16, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 128/131 mm,oom_reaper: remove pointless kthread_run() error check

From: Tetsuo Handa <[email protected]>
Subject: 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.

---

 mm/oom_kill.c |    8 --------
 1 file changed, 8 deletions(-)
mm/oom_kill.c renamed from mm/oom_kill.c~mmoom_reaper-remove-pointless-kthread_run-error-check +0 -2
diff -puN mm/oom_kill.c~mmoom_reaper-remove-pointless-kthread_run-error-check mm/oom_kill.c
@@ -640,9 +640,6 @@ static int oom_reaper(void *unused)
 
 static void wake_oom_reaper(struct task_struct *tsk)
 {
-	if (!oom_reaper_th)
-		return;