Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754389AbZAHCuc (ORCPT ); Wed, 7 Jan 2009 21:50:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751391AbZAHCuQ (ORCPT ); Wed, 7 Jan 2009 21:50:16 -0500 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:35591 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751348AbZAHCuO (ORCPT ); Wed, 7 Jan 2009 21:50:14 -0500 Date: Thu, 8 Jan 2009 11:49:05 +0900 From: KAMEZAWA Hiroyuki To: Steven Rostedt Cc: Linus Torvalds , 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 Message-Id: <20090108114905.3190b045.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: References: <87r63ljzox.fsf@basil.nowhere.org> <20090103191706.GA2002@parisc-linux.org> <1231368870.6686.16.camel@norville.austin.ibm.com> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 2.5.0 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1083 Lines: 28 On Wed, 7 Jan 2009 21:33:31 -0500 (EST) Steven Rostedt wrote: > > On Wed, 7 Jan 2009, Linus Torvalds wrote: > > > Should that be: > > > > > > #if defined(CONFIG_DEBUG_PAGEALLOC) || defined(CONFIG_MEMORY_HOTPLUG) > > > > Well, probably CONFIG_MEMORY_HOTREMOVE, no? And I'd actually suggest that > > unplugging should have a stop-machine if it doesn't already, just because > > it's such a special case - like module removal. > > I do not think stop-machine will help, unless that spinning is protected > by preempt-disable. If the task gets preempted after grabbing the owner > thread_info, and then stop-machine runs, the memory disappears, the task > is scheduled back, accesses the owner thread_info and then page-fault. > How about recording "cpu" into mutex at locking explicitly ? too bad ? -Kame -- 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/