Commit 2ea45800 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

sched: Don't try allocating memory from offline nodes

Allocators don't appreciate it when you try and allocate memory from
offline nodes.
Reported-and-tested-by: default avatarTony Luck <tony.luck@intel.com>
Reported-and-tested-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-epfc1io9whb7o22bcujf31vn@git.kernel.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 5aaa0b7a
......@@ -6436,7 +6436,7 @@ static void sched_init_numa(void)
return;
for (j = 0; j < nr_node_ids; j++) {
struct cpumask *mask = kzalloc_node(cpumask_size(), GFP_KERNEL, j);
struct cpumask *mask = kzalloc(cpumask_size(), GFP_KERNEL);
if (!mask)
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment