From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752630AbYLWPWk (ORCPT ); Tue, 23 Dec 2008 10:22:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751120AbYLWPWa (ORCPT ); Tue, 23 Dec 2008 10:22:30 -0500 Received: from cmpxchg.org ([85.214.51.133]:52179 "EHLO cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751815AbYLWPW3 (ORCPT ); Tue, 23 Dec 2008 10:22:29 -0500 Date: Tue, 23 Dec 2008 16:22:23 +0100 From: Johannes Weiner To: Pekka Enberg Cc: Akinobu Mita , linux-kernel@vger.kernel.org, Christoph Lameter , Matt Mackall , linux-mm@kvack.org, akpm@linux-foundation.org Subject: Re: [PATCH] failslab for SLUB Message-ID: <20081223152223.GA3436@cmpxchg.org> References: <20081223103616.GA7217@localhost.localdomain> <20081223144307.GA3215@cmpxchg.org> <1230043466.11073.0.camel@penberg-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1230043466.11073.0.camel@penberg-laptop> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 23, 2008 at 04:44:26PM +0200, Pekka Enberg wrote: > Hi Hannes, > > On Tue, 2008-12-23 at 15:43 +0100, Johannes Weiner wrote: > > > static inline void *____cache_alloc(struct kmem_cache *cachep, > > gfp_t flags) > > > { > > > void *objp; > > > @@ -3381,7 +3316,7 @@ __cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, > > > unsigned long save_flags; > > > void *ptr; > > > > > > - if (should_failslab(cachep, flags)) > > > + if (slab_should_failslab(cachep, flags)) > > > > should_failslab()? > > No, look at what slab_should_failslab() does. We need to exclude > cache_cache in SLAB but not in SLUB. Ah, crap. I missed that small '+' and thought it had been dropped. Sorry, Pekka. Hannes