From: Peter Zijlstra Date: Wed, 6 Nov 2013 17:47:57 +0000 (+0100) Subject: sched/numa: Cure update_numa_stats() vs. hotplug X-Git-Tag: v3.13-rc1~90^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5eca82a9ac2c961cfbd26a4b6f43e6e3747a71dd;p=pandora-kernel.git sched/numa: Cure update_numa_stats() vs. hotplug Because we're completely unserialized against hotplug its well possible to try and generate numa stats for an offlined node. Bail out early (and avoid a /0) in this case. The resulting stats are all 0 which should result in an undesirable balance target -- not to mention that actually trying to migrate to an offline CPU will fail. Reported-by: Prarit Bhargava Signed-off-by: Peter Zijlstra Cc: Mel Gorman Link: http://lkml.kernel.org/n/tip-orja0qylcvyhxfsuebcyL5sI@git.kernel.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed