[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <4fc507a211523c4a14@agluck-desktop.sc.intel.com>
Date: Tue, 29 May 2012 10:30:10 -0700
From: "Luck, Tony" <tony.luck@...el.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org,
Peter Zijlstra <a.p.zijlstra@...llo.nl>
Subject: [PATCH] sched: Don't try allocating memory from offline nodes
From: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Allocators don't appreciate it when you try and allocate memory from
offline nodes.
Reported-by: Tony Luck <tony.luck@...el.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@...llo.nl>
---
This patch has been sitting around since Friday.
kernel/sched/core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Index: linux-2.6/kernel/sched/core.c
===================================================================
--- linux-2.6.orig/kernel/sched/core.c
+++ linux-2.6/kernel/sched/core.c
@@ -6449,7 +6449,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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists