diff options
-rw-r--r-- | kernel/exit.c | 1 | ||||
-rw-r--r-- | mm/oom_kill.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index e5c4668f1799..88c6b3e42583 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -455,6 +455,7 @@ static void exit_mm(struct task_struct * tsk) | |||
455 | task_unlock(tsk); | 455 | task_unlock(tsk); |
456 | mm_update_next_owner(mm); | 456 | mm_update_next_owner(mm); |
457 | mmput(mm); | 457 | mmput(mm); |
458 | clear_thread_flag(TIF_MEMDIE); | ||
458 | } | 459 | } |
459 | 460 | ||
460 | /* | 461 | /* |
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index d33aca1552ad..1e11df8fa7ec 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
@@ -258,8 +258,6 @@ enum oom_scan_t oom_scan_process_thread(struct task_struct *task, | |||
258 | unsigned long totalpages, const nodemask_t *nodemask, | 258 | unsigned long totalpages, const nodemask_t *nodemask, |
259 | bool force_kill) | 259 | bool force_kill) |
260 | { | 260 | { |
261 | if (task->exit_state) | ||
262 | return OOM_SCAN_CONTINUE; | ||
263 | if (oom_unkillable_task(task, NULL, nodemask)) | 261 | if (oom_unkillable_task(task, NULL, nodemask)) |
264 | return OOM_SCAN_CONTINUE; | 262 | return OOM_SCAN_CONTINUE; |
265 | 263 | ||