From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [patch] slob: implement RCU freeing From: Peter Zijlstra In-Reply-To: <4642C6A2.1090809@yahoo.com.au> References: <20070509012725.GZ11115@waste.org> <20070508.185141.85412154.davem@davemloft.net> <46412BB5.1060605@yahoo.com.au> <20070509174238.b4152887.akpm@linux-foundation.org> <46426EA1.4030408@yahoo.com.au> <20070510022707.GO11115@waste.org> <4642C6A2.1090809@yahoo.com.au> Content-Type: text/plain Date: Thu, 10 May 2007 10:22:08 +0200 Message-Id: <1178785328.6810.19.camel@twins> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Nick Piggin Cc: Matt Mackall , Andrew Morton , Linux Memory Management List-ID: On Thu, 2007-05-10 at 17:15 +1000, Nick Piggin wrote: > @@ -283,6 +295,12 @@ > if (c) { > c->name = name; > c->size = size; > + if (flags & SLAB_DESTROY_BY_RCU) { > + BUG_ON(c->dtor); > + /* leave room for rcu footer at the end of object */ > + c->size += sizeof(struct slob_rcu); > + } > + c->flags = flags; might want to put this hunt below > c->ctor = ctor; > c->dtor = dtor; here; for c->dtor is not initialised quite yet at the BUG_ON site. > /* ignore alignment unless it's forced */ -- 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