Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761743AbXHTWO6 (ORCPT ); Mon, 20 Aug 2007 18:14:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752805AbXHTWOp (ORCPT ); Mon, 20 Aug 2007 18:14:45 -0400 Received: from gate.crashing.org ([63.228.1.57]:40720 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759810AbXHTWOg (ORCPT ); Mon, 20 Aug 2007 18:14:36 -0400 In-Reply-To: <46C99945.9080303@redhat.com> References: <18117.6495.397597.582736@cargo.ozlabs.ibm.com> <20070817035342.GA14744@gondor.apana.org.au> <46C55E90.7010407@yahoo.com.au> <46C56ADF.8010501@cyberone.com.au> <46C59717.4020108@cyberone.com.au> <46C993DF.4080400@redhat.com> <20070820133207.GA13835@gondor.apana.org.au> <46C99945.9080303@redhat.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: Christoph Lameter , Paul Mackerras , heiko.carstens@de.ibm.com, Stefan Richter , horms@verge.net.au, Satyam Sharma , Ilpo Jarvinen , Linux Kernel Mailing List , David Miller , "Paul E. McKenney" , ak@suse.de, Netdev , cfriesen@nortel.com, rpjday@mindspring.com, jesper.juhl@gmail.com, linux-arch@vger.kernel.org, Andrew Morton , zlynx@acm.org, schwidefsky@de.ibm.com, Herbert Xu , Linus Torvalds , wensong@linux-vs.org, Nick Piggin , wjiang@resilience.com From: Segher Boessenkool Subject: Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures Date: Tue, 21 Aug 2007 00:07:15 +0200 To: Chris Snook X-Mailer: Apple Mail (2.623) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 665 Lines: 19 > Such code generally doesn't care precisely when it gets the update, > just that the update is atomic, and it doesn't loop forever. Yes, it _does_ care that it gets the update _at all_, and preferably as early as possible. > Regardless, I'm convinced we just need to do it all in assembly. So do you want "volatile asm" or "plain asm", for atomic_read()? The asm version has two ways to go about it too... Segher - 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/