diff options
| author | David Rientjes <[email protected]> | 2012-03-21 16:33:47 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-03-21 17:54:55 -0700 |
| commit | 8447d950e7445cae71ad66d0e33784f8388aaf9d (patch) | |
| tree | b7f7cfba3d2264b87ca168131e0a65d89faa51a8 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 647f2bdf4a00dbcaa8964286501d68e7d2e6da93 (diff) | |
mm, oom: do not emit oom killer warning if chosen thread is already exiting
If a thread is chosen for oom kill and is already PF_EXITING, then the oom
killer simply sets TIF_MEMDIE and returns. This allows the thread to have
access to memory reserves so that it may quickly exit. This logic is
preceeded with a comment saying there's no need to alarm the sysadmin.
This patch adds truth to that statement.
There's no need to emit any warning about the oom condition if the thread
is already exiting since it will not be killed. In this condition, just
silently return the oom killer since its only giving access to memory
reserves and is otherwise a no-op.
Acked-by: KOSAKI Motohiro <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: David Rientjes <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions