]> git.baikalelectronics.ru Git - kernel.git/commit
sched/numa: Cure update_numa_stats() vs. hotplug
authorPeter Zijlstra <peterz@infradead.org>
Wed, 6 Nov 2013 17:47:57 +0000 (18:47 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Nov 2013 12:33:52 +0000 (13:33 +0100)
commitf87922b8cde53fa75cb99cd2575822720919a0cc
treec63a3495a562c32b447bd4dec093eca98e9a584b
parentc5b8d78599d78b1ea1f6ef53689321a78a7a19ad
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 <prarit@redhat.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Mel Gorman <mgorman@suse.de>
Link: http://lkml.kernel.org/n/tip-orja0qylcvyhxfsuebcyL5sI@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c