Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933841Ab1CXTOk (ORCPT ); Thu, 24 Mar 2011 15:14:40 -0400 Received: from mail-gy0-f174.google.com ([209.85.160.174]:59798 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933573Ab1CXTOi convert rfc822-to-8bit (ORCPT ); Thu, 24 Mar 2011 15:14:38 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=mpVbEGSzc8FF2BEvMo7HBHBJwzUn9fKGjT8hDHI0N8qDuqYSVvz/9qZLegbDjon2dK UOLvFHL0JpmPTQ5N5injJDp2QhZQ0D5mPmfm+SW1ECcYRnN6FuyGRLL+oRoHqISkPmWH pOGcMrASiPK1/lt5IhGmcoCY26C6lljXjOMhM= MIME-Version: 1.0 In-Reply-To: References: <20110324172653.GA28507@elte.hu> <1300990853.3747.189.camel@edumazet-laptop> <20110324185903.GA30510@elte.hu> Date: Thu, 24 Mar 2011 21:14:37 +0200 X-Google-Sender-Auth: CvA9zERpflLo71q1PSnR4VIYIEA Message-ID: Subject: Re: [GIT PULL] SLAB changes for v2.6.39-rc1 From: Pekka Enberg To: Christoph Lameter Cc: Ingo Molnar , Eric Dumazet , 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1587 Lines: 43 On Thu, Mar 24, 2011 at 9:05 PM, Christoph Lameter wrote: > On Thu, 24 Mar 2011, Pekka Enberg wrote: > >> It hanged here which is pretty much expected on this box if >> kmem_cache_init() oopses. I'm now trying to see if I'm able to find >> the config option that breaks things. CONFIG_PREEMPT_NONE is a >> suspect: >> >> penberg@tiger:~/linux$ grep PREEMPT ../config-ingo >> # CONFIG_PREEMPT_RCU is not set >> CONFIG_PREEMPT_NONE=y >> # CONFIG_PREEMPT_VOLUNTARY is not set >> # CONFIG_PREEMPT is not set > > The following patch should ensure that all percpu data is touched > before any emulation functions are called: > > --- > ?mm/slub.c | ? ?2 +- > ?1 file changed, 1 insertion(+), 1 deletion(-) > > Index: linux-2.6/mm/slub.c > =================================================================== > --- linux-2.6.orig/mm/slub.c ? ?2011-03-24 14:03:10.000000000 -0500 > +++ linux-2.6/mm/slub.c 2011-03-24 14:04:08.000000000 -0500 > @@ -1604,7 +1604,7 @@ static inline void note_cmpxchg_failure( > > ?void init_kmem_cache_cpus(struct kmem_cache *s) > ?{ > -#if defined(CONFIG_CMPXCHG_LOCAL) && defined(CONFIG_PREEMPT) > +#ifdef CONFIG_CMPXCHG_LOCAL > ? ? ? ?int cpu; > > ? ? ? ?for_each_possible_cpu(cpu) > Ingo, can you try this patch out, please? I'm compiling here but unfortunately I'm stuck with a really slow laptop... -- 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/