From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: 3.2-rc1 and nvidia drivers Date: Wed, 30 Nov 2011 15:16:18 +0100 Message-ID: <1322662578.2921.275.camel@twins> References: <4EC384FD.1040106@tum.de> <4ED35D9A.7090401@tum.de> <1322620613.17003.110.camel@frodo> <1322651681.2921.247.camel@twins> <1322662465.17003.117.camel@frodo> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Cc: John Kacur , Thomas Schauss , Thomas Gleixner , RT To: Steven Rostedt Return-path: Received: from casper.infradead.org ([85.118.1.10]:59426 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754879Ab1K3OQh convert rfc822-to-8bit (ORCPT ); Wed, 30 Nov 2011 09:16:37 -0500 In-Reply-To: <1322662465.17003.117.camel@frodo> Sender: linux-rt-users-owner@vger.kernel.org List-ID: > I took Peter's patch and ported it to 3.0-rt. Hopefully, I didn't screw > it up. > > -- Steve > > diff --git a/mm/slab.c b/mm/slab.c > index 096bf0a..966a8c4 100644 > --- a/mm/slab.c > +++ b/mm/slab.c > @@ -764,6 +764,7 @@ static enum { > PARTIAL_AC, > PARTIAL_L3, > EARLY, > + LATE, > FULL > } g_cpucache_up; > > @@ -795,7 +796,7 @@ static void init_node_lock_keys(int q) > { > struct cache_sizes *s = malloc_sizes; > > - if (g_cpucache_up != FULL) > + if (g_cpucache_up < LATE) > return; > > for (s = malloc_sizes; s->cs_size != ULONG_MAX; s++) { > @@ -1752,7 +1753,7 @@ void __init kmem_cache_init_late(void) > mutex_unlock(&cache_chain_mutex); > > /* Done! */ > - g_cpucache_up = FULL; > + g_cpucache_up = LATE; > > /* Annotate slab for lockdep -- annotate the malloc caches */ > init_lock_keys(); > > You did screw it up.. now g_cpucache_up will never be FULL. It works much better if you also apply 30765b92 to this tree.