oom: add helpers for setting and clearing TIF_MEMDIE
[firefly-linux-kernel-4.4.55.git] / kernel / exit.c
index 6806c55475eec17be40b1d6c53cf9fe007376279..02b3d1ab2ec0d74799b669a0a813dfd55bc30813 100644 (file)
@@ -435,7 +435,7 @@ static void exit_mm(struct task_struct *tsk)
        task_unlock(tsk);
        mm_update_next_owner(mm);
        mmput(mm);
-       clear_thread_flag(TIF_MEMDIE);
+       unmark_oom_victim();
 }
 
 static struct task_struct *find_alive_thread(struct task_struct *p)