From: Miao Xie Date: Tue, 23 Mar 2010 20:35:34 +0000 (-0700) Subject: cpuset: fix the problem that cpuset_mem_spread_node() returns an offline node X-Git-Tag: v2.6.34-rc3~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ab116c9349ef52d6fbd2e2917a53f13194b048e;p=pandora-kernel.git cpuset: fix the problem that cpuset_mem_spread_node() returns an offline node cpuset_mem_spread_node() returns an offline node, and causes an oops. This patch fixes it by initializing task->mems_allowed to node_states[N_HIGH_MEMORY], and updating task->mems_allowed when doing memory hotplug. Signed-off-by: Miao Xie Acked-by: David Rientjes Reported-by: Nick Piggin Tested-by: Nick Piggin Cc: Paul Menage Cc: Li Zefan Cc: Ingo Molnar Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed