From: KAMEZAWA Hiroyuki Date: Mon, 22 Feb 2010 20:44:14 +0000 (-0800) Subject: memcg: fix oom killing a child process in an other cgroup X-Git-Tag: v2.6.33~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a2d41961dd6815b874b5c0afec0ac96cd90eea4;p=pandora-kernel.git 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 Reviewed-by: Minchan Kim Cc: Balbir Singh Reviewed-by: Daisuke Nishimura Acked-by: David Rientjes Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed