Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754736Ab2E2RaN (ORCPT ); Tue, 29 May 2012 13:30:13 -0400 Received: from mga14.intel.com ([143.182.124.37]:63338 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754547Ab2E2RaL (ORCPT ); Tue, 29 May 2012 13:30:11 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="149060618" From: "Luck, Tony" To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Peter Zijlstra Subject: [PATCH] sched: Don't try allocating memory from offline nodes Date: Tue, 29 May 2012 10:30:10 -0700 Message-Id: <4fc507a211523c4a14@agluck-desktop.sc.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1072 Lines: 34 From: Peter Zijlstra Allocators don't appreciate it when you try and allocate memory from offline nodes. Reported-by: Tony Luck Signed-off-by: Peter Zijlstra --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/