Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933522Ab1CXUIW (ORCPT ); Thu, 24 Mar 2011 16:08:22 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:49787 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752341Ab1CXUIS (ORCPT ); Thu, 24 Mar 2011 16:08:18 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=pDtog+mtGRxRh9GWEH4io7SqUQvOl4cmuAzM901m+521ZEs58c6HjPVvnPKfUYcUGa iTYcCqToRTEYfhwp+9A5MVpEwjefiN9Cbte71+NNBDL1ta/P95NpkVkQl73hbVbDTZ5X NFlzQrcowh7fehTn19yhqQ4fdSc4fM/iHcwaY= Subject: Re: [GIT PULL] SLAB changes for v2.6.39-rc1 From: Eric Dumazet To: Christoph Lameter Cc: Pekka Enberg , Ingo Molnar , torvalds@linux-foundation.org, akpm@linux-foundation.org, tj@kernel.org, npiggin@kernel.dk, rientjes@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org In-Reply-To: References: <1300990853.3747.189.camel@edumazet-laptop> <20110324185903.GA30510@elte.hu> <20110324193647.GA7957@elte.hu> Content-Type: text/plain; charset="UTF-8" Date: Thu, 24 Mar 2011 21:08:10 +0100 Message-ID: <1300997290.2714.2.camel@edumazet-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1157 Lines: 32 Le jeudi 24 mars 2011 à 14:51 -0500, Christoph Lameter a écrit : > On Thu, 24 Mar 2011, Pekka Enberg wrote: > > > Thanks, Ingo! Christoph, may I have your sign-off for the patch and > > I'll send it to Linus? > > > Subject: SLUB: Write to per cpu data when allocating it > > It turns out that the cmpxchg16b emulation has to access vmalloced > percpu memory with interrupts disabled. If the memory has never > been touched before then the fault necessary to establish the > mapping will not to occur and the kernel will fail on boot. > > Fix that by reusing the CONFIG_PREEMPT code that writes the > cpu number into a field on every cpu. Writing to the per cpu > area before causes the mapping to be established before we get > to a cmpxchg16b emulation. > Thats strange, alloc_percpu() is supposed to zero the memory already ... Are you sure its really this problem of interrupts being disabled ? -- 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/