summaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorMichal Hocko <mhocko@suse.cz>2015-02-12 00:26:15 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-12 02:06:03 +0100
commit63a8ca9b2084fa5bd91aa380532f18e361764109 (patch)
tree05eec7d68be099271fd03aa76759800124905484 /arch/blackfin
parentoom: add helpers for setting and clearing TIF_MEMDIE (diff)
downloadlinux-63a8ca9b2084fa5bd91aa380532f18e361764109.tar.xz
linux-63a8ca9b2084fa5bd91aa380532f18e361764109.zip
oom: thaw the OOM victim if it is frozen
oom_kill_process only sets TIF_MEMDIE flag and sends a signal to the victim. This is basically noop when the task is frozen though because the task sleeps in the uninterruptible sleep. The victim is eventually thawed later when oom_scan_process_thread meets the task again in a later OOM invocation so the OOM killer doesn't live lock. But this is less than optimal. Let's add __thaw_task into mark_tsk_oom_victim after we set TIF_MEMDIE to the victim. We are not checking whether the task is frozen because that would be racy and __thaw_task does that already. oom_scan_process_thread doesn't need to care about freezer anymore as TIF_MEMDIE and freezer are excluded completely now. Signed-off-by: Michal Hocko <mhocko@suse.cz> Cc: Tejun Heo <tj@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Cong Wang <xiyou.wangcong@gmail.com> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/blackfin')
0 files changed, 0 insertions, 0 deletions