From: KAMEZAWA Hiroyuki Date: Sat, 30 Dec 2006 00:47:20 +0000 (-0800) Subject: [PATCH] fix oom killer kills current every time if there is memory-less-node take2 X-Git-Tag: v2.6.20-rc3~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96ac5913f4e45c6a1b98350f2c0a8bb3abe2646a;p=pandora-kernel.git [PATCH] fix oom killer kills current every time if there is memory-less-node take2 constrained_alloc(), which is called to detect where oom is from, checks passed zone_list(). If zone_list doesn't include all nodes, it thinks oom is from mempolicy. But there is memory-less-node. memory-less-node's zones are never included in zonelist[]. contstrained_alloc() should get memory_less_node into count. Otherwise, it always thinks 'oom is from mempolicy'. This means that current process dies at any time. This patch fix it. Signed-off-by: KAMEZAWA Hiroyuki Cc: Paul Jackson Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed