Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764283AbXH0WMc (ORCPT ); Mon, 27 Aug 2007 18:12:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758294AbXH0WMW (ORCPT ); Mon, 27 Aug 2007 18:12:22 -0400 Received: from netops-testserver-4-out.sgi.com ([192.48.171.29]:46229 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756973AbXH0WMU (ORCPT ); Mon, 27 Aug 2007 18:12:20 -0400 Date: Mon, 27 Aug 2007 15:12:19 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Mathieu Desnoyers cc: Peter Zijlstra , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, mingo@redhat.com Subject: Re: [PATCH] SLUB use cmpxchg_local In-Reply-To: <20070827213845.GB9748@Krystal> Message-ID: References: <20070821173849.GA8360@Krystal> <1188197539.6114.426.camel@twins> <20070827202203.GB5653@Krystal> <20070827203913.GA7416@Krystal> <20070827211003.GA10627@Krystal> <20070827213845.GB9748@Krystal> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 707 Lines: 20 On Mon, 27 Aug 2007, Mathieu Desnoyers wrote: > > The slow path would require disable preemption and two interrupt disables. > If the slow path have to call new_slab, then yes. But it seems that not > every slow path must call it, so for the other slow paths, only one > interrupt disable would be required. If we include new_slab then we get to 3 times: 1. In the cmpxchg_local emulation that fails 2. For the slow path 3. When calling the page allocator. - 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/