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 aad80c4b3..716594516 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -460,6 +460,7 @@ static void exit_mm(struct task_struct * tsk) task_unlock(tsk); mm_update_next_owner(mm); mmput(mm); + clear_thread_flag(TIF_MEMDIE); } /* diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 24a437368..46859d19e 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -260,8 +260,6 @@ enum oom_scan_t oom_scan_process_thread(struct task_struct *task, unsigned long totalpages, const nodemask_t *nodemask, bool force_kill) { - if (task->exit_state) - return OOM_SCAN_CONTINUE; if (oom_unkillable_task(task, NULL, nodemask)) return OOM_SCAN_CONTINUE; |
