Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934986AbYBVNn5 (ORCPT ); Fri, 22 Feb 2008 08:43:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757366AbYBVNnr (ORCPT ); Fri, 22 Feb 2008 08:43:47 -0500 Received: from ms-smtp-03.nyroc.rr.com ([24.24.2.57]:47248 "EHLO ms-smtp-03.nyroc.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755796AbYBVNnq (ORCPT ); Fri, 22 Feb 2008 08:43:46 -0500 Date: Fri, 22 Feb 2008 08:43:38 -0500 (EST) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Ingo Molnar cc: gregory.haskins@gmail.com, Gregory Haskins , a.p.zijlstra@chello.nl, tglx@linutronix.de, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, bill.huey@gmail.com, kevin@hilman.org, cminyard@mvista.com, dsingleton@mvista.com, dwalker@mvista.com, npiggin@suse.de, dsaxena@plexity.net, ak@suse.de, gregkh@suse.de, sdietrich@novell.com, pmorreale@novell.com, mkohari@novell.com Subject: Re: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep In-Reply-To: <20080222133541.GA8868@elte.hu> Message-ID: References: <20080221152504.4804.8724.stgit@novell1.haskins.net> <20080221152651.4804.4702.stgit@novell1.haskins.net> <47BECE30.8030100@gmail.com> <20080222133541.GA8868@elte.hu> 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: 936 Lines: 31 On Fri, 22 Feb 2008, Ingo Molnar wrote: > > * Gregory Haskins wrote: > > > My assumption is that the xchg() (inside update_current()) acts as an > > effective wmb(). If xchg() does not have this property, then this > > code is broken and patch 6/14 should also add a: > > xchg() is a strong implicit memory barrier, it implies smp_mb(). > (historic sidenote: it was the very first SMP primitive we had in > Linux.) OK, I've been proven wrong ;-) I was just thinking of how an arch would implement it. No need for memory barriers in just an xchg. But if Linux "implies it" then that's another story. Thanks, -- Steve /me learns something new everyday. -- 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/