diff options
author | David Rientjes <rientjes@google.com> | 2010-05-27 01:42:41 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-27 20:12:43 +0400 |
commit | df64f81bb1e01cbef967a96642dacf208acb7e72 (patch) | |
tree | accb54ac130b2ac52b3d8644cb6585cf9730975c /kernel/sched_fair.c | |
parent | dc10e281f5fc42e288ab979294d1d5dc9743ae1b (diff) | |
download | linux-df64f81bb1e01cbef967a96642dacf208acb7e72.tar.xz |
memcg: make oom killer a no-op when no killable task can be found
It's pointless to try to kill current if select_bad_process() did not find
an eligible task to kill in mem_cgroup_out_of_memory() since it's
guaranteed that current is a member of the memcg that is oom and it is, by
definition, unkillable.
Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/sched_fair.c')
0 files changed, 0 insertions, 0 deletions