Message ID | 20141207185533.GA29065@dhcp22.suse.cz (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 19a08f3f00ba..fca456fe855a 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -426,6 +426,13 @@ void note_oom_kill(void) void mark_tsk_oom_victim(struct task_struct *tsk) { set_tsk_thread_flag(tsk, TIF_MEMDIE); + + /* + * Make sure that the task is woken up from uninterruptible sleep + * if it is frozen because OOM killer wouldn't be able to free + * any memory and livelock. freezing_slow_path will tell the freezer + * that TIF_MEMDIE tasks should be ignored. + */ __thaw_task(tsk); }