From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id 0CD7D6B0055 for ; Tue, 30 Jun 2009 10:26:40 -0400 (EDT) Received: by fxm2 with SMTP id 2so216431fxm.38 for ; Tue, 30 Jun 2009 07:26:39 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20090625193137.GA16861@linux.vnet.ibm.com> <1246315553.21295.100.camel@calx> <1246320394.21295.105.camel@calx> <20090630060031.GL7070@linux.vnet.ibm.com> <84144f020906292358j6517b599n471eed4e88781a78@mail.gmail.com> Date: Tue, 30 Jun 2009 17:26:39 +0300 Message-ID: <84144f020906300726n4978d59ale5c8a3c076a1501a@mail.gmail.com> Subject: Re: [PATCH RFC] fix RCU-callback-after-kmem_cache_destroy problem in sl[aou]b From: Pekka Enberg Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Christoph Lameter Cc: paulmck@linux.vnet.ibm.com, Matt Mackall , linux-kernel@vger.kernel.org, linux-mm@kvack.org, jdb@comx.dk List-ID: Hi Christoph, On Tue, 30 Jun 2009, Pekka Enberg wrote: >> I don't even claim to understand all the RCU details here but I don't >> see why we should care about _kmem_cache_destroy()_ performance at >> this level. Christoph, hmmm? On Tue, Jun 30, 2009 at 5:20 PM, Christoph Lameter wrote: > Well it was surprising to me that kmem_cache_destroy() would perform rcu > actions in the first place. RCU is usually handled externally and not > within the slab allocator. The only reason that SLAB_DESTROY_BY_RCU exists > is because the user cannot otherwise control the final release of memory > to the page allocator. Right. A quick grep for git logs reveals that it's been like that in mm/slab.c at least since 2.6.12-rc2 so I think we should consider it as part of the slab API and Paul's patch is an obvious bugfix to it. Pekka -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org