KAMEZAWA Hiroyuki 5a2d41961d memcg: fix oom killing a child process in an other cgroup
Presently the oom-killer is memcg aware and it finds the worst process
from processes under memcg(s) in oom.  Then, it kills victim's child
first.

It may kill a child in another cgroup and may not be any help for
recovery.  And it will break the assumption users have.

This patch fixes it.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Reviewed-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Acked-by: David Rientjes <rientjes@google.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-02-22 19:50:34 -08:00
..
2009-12-03 13:49:43 +01:00
2009-04-01 08:59:13 -07:00
2010-02-02 18:11:22 -08:00
2009-06-16 19:47:28 -07:00
2009-12-15 08:53:20 -08:00
2009-09-22 07:17:35 -07:00
2009-12-30 12:23:27 -08:00
2009-12-15 08:53:16 -08:00
2007-10-20 01:27:18 +02:00
2009-12-17 15:45:32 -08:00
2009-12-16 19:48:48 -05:00
2009-12-28 20:57:27 +02:00
2009-12-15 08:53:19 -08:00
2009-06-23 12:50:05 -07:00
2010-01-13 16:09:33 -08:00