Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762797AbZAGXuA (ORCPT ); Wed, 7 Jan 2009 18:50:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756457AbZAGXts (ORCPT ); Wed, 7 Jan 2009 18:49:48 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:51339 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756378AbZAGXtr (ORCPT ); Wed, 7 Jan 2009 18:49:47 -0500 Date: Wed, 7 Jan 2009 18:49:45 -0500 (EST) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Linus Torvalds cc: Dave Kleikamp , Peter Zijlstra , paulmck@linux.vnet.ibm.com, Gregory Haskins , Ingo Molnar , Matthew Wilcox , Andi Kleen , Chris Mason , Andrew Morton , Linux Kernel Mailing List , linux-fsdevel , linux-btrfs , Thomas Gleixner , Nick Piggin , Peter Morreale , Sven Dietrich Subject: Re: [PATCH -v5][RFC]: mutex: implement adaptive spinning In-Reply-To: Message-ID: References: <87r63ljzox.fsf@basil.nowhere.org> <20090103191706.GA2002@parisc-linux.org> <1231248041.11687.107.camel@twins> <49636799.1010109@novell.com> <20090106214229.GD6741@linux.vnet.ibm.com> <1231278275.11687.111.camel@twins> <1231279660.11687.121.camel@twins> <1231281801.11687.125.camel@twins> <1231283778.11687.136.camel@twins> <1231329783.11687.287.camel@twins> <1231347442.11687.344.camel@twins> <1231365115.11687.361.camel@twins> <1231368870.6686.16.camel@norville.austin.ibm.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1047 Lines: 39 On Wed, 7 Jan 2009, Linus Torvalds wrote: > On Wed, 7 Jan 2009, Dave Kleikamp wrote: > > > > Do you need to even do that if CONFIG_DEBUG_PAGEALLOC is unset? > > No. > > > Something like: > > > > #ifdef CONFIG_DEBUG_PAGEALLOC > > /* > > * Need to access the cpu field knowing that > > * DEBUG_PAGEALLOC could have unmapped it if > > * the mutex owner just released it and exited. > > */ > > if (probe_kernel_address(&thread->cpu, cpu)) > > break; > > #else > > cpu = thread->cpu; > > #endif > > yes. That would work fine. What about memory hotplug as Ingo mentioned? Should that be: #if defined(CONFIG_DEBUG_PAGEALLOC) || defined(CONFIG_MEMORY_HOTPLUG) ?? -- Steve -- 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/