OSDN Git Service

sched: Don't try allocating memory from offline nodes
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 25 May 2012 07:26:43 +0000 (09:26 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 30 May 2012 12:02:23 +0000 (14:02 +0200)
Allocators don't appreciate it when you try and allocate memory from
offline nodes.

Reported-and-tested-by: Tony Luck <tony.luck@intel.com>
Reported-and-tested-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-epfc1io9whb7o22bcujf31vn@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c

index 75844a8..5573361 100644 (file)
@@ -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;