summaryrefslogtreecommitdiffstats
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2009-06-17 00:33:16 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-17 04:47:45 +0200
commit81236810226f71bd9ff77321c8e8276dae7efc61 (patch)
tree8194006c780be40bfac49a2c557ab037186a57e9 /fs/fs-writeback.c
parentvmscan: handle may_swap more strictly (diff)
downloadlinux-81236810226f71bd9ff77321c8e8276dae7efc61.tar.xz
linux-81236810226f71bd9ff77321c8e8276dae7efc61.zip
oom: only oom kill exiting tasks with attached memory
When a task is chosen for oom kill and is found to be PF_EXITING, __oom_kill_task() is called to elevate the task's timeslice and give it access to memory reserves so that it may quickly exit. This privilege is unnecessary, however, if the task has already detached its mm. Although its possible for the mm to become detached later since task_lock() is not held, __oom_kill_task() will simply be a no-op in such circumstances. Subsequently, it is no longer necessary to warn about killing mm-less tasks since it is a no-op. Signed-off-by: David Rientjes <rientjes@google.com> Acked-by: Rik van Riel <riel@redhat.com> Cc: Balbir Singh <balbir@linux.vnet.ibm.com> Cc: Minchan Kim <minchan.kim@gmail.com> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fs-writeback.c')
0 files changed, 0 insertions, 0 deletions