mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
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 <[email protected]> Acked-by: David Rientjes <[email protected]> Reported-by: Nick Piggin <[email protected]> Tested-by: Nick Piggin <[email protected]> Cc: Paul Menage <[email protected]> Cc: Li Zefan <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>