aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/fb_draw.h
diff options
context:
space:
mode:
authorGravatar David Rientjes <rientjes@google.com> 2009-05-06 16:02:55 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2009-05-06 16:36:09 -0700
commit184101bf143ac96d62b3dcc17e7b3550f98d3350 (patch)
treec16b7d56d5603ae9d120a99cbf814195d750a380 /drivers/video/fb_draw.h
parentfiemap: fix problem with setting FIEMAP_EXTENT_LAST (diff)
downloadlinux-184101bf143ac96d62b3dcc17e7b3550f98d3350.tar.gz
linux-184101bf143ac96d62b3dcc17e7b3550f98d3350.tar.bz2
linux-184101bf143ac96d62b3dcc17e7b3550f98d3350.zip
oom: prevent livelock when oom_kill_allocating_task is set
When /proc/sys/vm/oom_kill_allocating_task is set for large systems that want to avoid the lengthy tasklist scan, it's possible to livelock if current is ineligible for oom kill. This normally happens when it is set to OOM_DISABLE, but is also possible if any threads are sharing the same ->mm with a different tgid. So change __out_of_memory() to fall back to the full task-list scan if it was unable to kill `current'. Cc: Nick Piggin <npiggin@suse.de> Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/fb_draw.h')
0 files changed, 0 insertions, 0 deletions