Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754965AbZJ2OsU (ORCPT ); Thu, 29 Oct 2009 10:48:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754429AbZJ2OsT (ORCPT ); Thu, 29 Oct 2009 10:48:19 -0400 Received: from hera.kernel.org ([140.211.167.34]:52587 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754401AbZJ2OsS (ORCPT ); Thu, 29 Oct 2009 10:48:18 -0400 Message-ID: <4AE9AB23.8010207@kernel.org> Date: Thu, 29 Oct 2009 15:48:03 +0100 From: Tejun Heo User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Christoph Lameter CC: Jiri Kosina , "Rafael J. Wysocki" , Linux Kernel Mailing List , Kernel Testers List , Ingo Molnar , Jeff Mahoney , "Luck, Tony" , Peter Zijlstra , Peter Zijlstra Subject: Re: [Bug #14467] Linker errors on ia64 with NR_CPUS=4096 References: <6dRYo8ss7vL.A.nnF.Cre5KB@chimera> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1123 Lines: 28 Christoph Lameter wrote: >> There already are two patches for this acked by Ingo/Tejun, which Tejun is >> going to take through his tree tomorrow. >> >> http://lkml.org/lkml/2009/10/27/132 > > per cpu alloc from an atomic context without passing gfp flags through to > the page allocator? That does not look right. Sure wish that the percpu > allocator would be working from atomic contexts for other cases. It's just for sched_init() which has irq off but is not really in atomic context and does GFP_KERNEL allocations. The following comment has been added to the first patch to explain it. + * allocations are done using GFP_KERNEL with pcpu_lock released. In + * general, percpu memory can't be allocated with irq off but + * irqsave/restore are still used in alloc path so that it can be used + * from early init path - sched_init() specifically. Thanks. -- tejun -- 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/