Skip to contentSkip to conversation

sched: Don' t try allocating memory from offline nodes

tip:sched/urgent tip-bot for Peter Zijlstra 1 participant 1 message May 30, 2012 Scheduler

lore
Share & tools
lore
#0 lore raw
Commit-ID:  2ea45800d8e1c3c51c45a233d6bd6289a297a386
Gitweb:     http://git.kernel.org/tip/2ea45800d8e1c3c51c45a233d6bd6289a297a386
Author:     Peter Zijlstra <[email protected]>
AuthorDate: Fri, 25 May 2012 09:26:43 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Wed, 30 May 2012 14:02:23 +0200

sched: Don't try allocating memory from offline nodes

Allocators don't appreciate it when you try and allocate memory from offline nodes.

---
 kernel/sched/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sched/core.c +1 -1
index 75844a8..5573361 100644
@@ -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;