Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761045AbZAGXr2 (ORCPT ); Wed, 7 Jan 2009 18:47:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755292AbZAGXrQ (ORCPT ); Wed, 7 Jan 2009 18:47:16 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:49609 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752826AbZAGXrP (ORCPT ); Wed, 7 Jan 2009 18:47:15 -0500 Date: Wed, 7 Jan 2009 18:47:12 -0500 (EST) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Linus Torvalds cc: Gregory Haskins , Ingo Molnar , Andi Kleen , Matthew Wilcox , Peter Zijlstra , paulmck@linux.vnet.ibm.com, 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: <1231283778.11687.136.camel@twins> <1231329783.11687.287.camel@twins> <1231347442.11687.344.camel@twins> <20090107210923.GV2002@parisc-linux.org> <20090107213924.GP496@one.firstfloor.org> <49652C7C.3000909@novell.com> <20090107223317.GB27629@elte.hu> <4965331E.8090202@novell.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: 624 Lines: 17 On Wed, 7 Jan 2009, Steven Rostedt wrote: > > True. I need to keep looking at the code that is posted. In -rt, we force > the fast path into the slowpath as soon as another task fails to get the > lock. Without that, as you pointed out, the code can be racy. I mean we force the fast unlock path into the slow path as soon as another task fails to get the lock. -- 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/