Fix panic of cpu online with memory less node
authorYasunori Goto <y-goto@jp.fujitsu.com>
Tue, 16 Oct 2007 08:25:40 +0000 (01:25 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:42:59 +0000 (09:42 -0700)
commit58c0a4a7864b2dad6da4090813322fcd29a11c92
tree239da4074ced93ee6918fdb03e3839ef721191bb
parent37b07e4163f7306aa735a6e250e8d22293e5b8de
Fix panic of cpu online with memory less node

When a cpu is onlined on memory-less-node box, kernel panics due to touch
NULL pointer of pgdat->kswapd.  Current kswapd runs only nodes which have
memory.  So, calling of set_cpus_allowed() is not necessary for memory-less
node.

This is fix for it.

Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c