Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938043AbXHIBsg (ORCPT ); Wed, 8 Aug 2007 21:48:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759619AbXHIBsZ (ORCPT ); Wed, 8 Aug 2007 21:48:25 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:57196 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1756466AbXHIBsY (ORCPT ); Wed, 8 Aug 2007 21:48:24 -0400 Date: Wed, 08 Aug 2007 18:48:24 -0700 (PDT) Message-Id: <20070808.184824.133910636.davem@davemloft.net> To: herbert@gondor.apana.org.au Cc: csnook@redhat.com, akpm@linux-foundation.org, torvalds@linux-foundation.org, ak@suse.de, heiko.carstens@de.ibm.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, schwidefsky@de.ibm.com, wensong@linux-vs.org, horms@verge.net.au, wjiang@resilience.com, cfriesen@nortel.com, zlynx@acm.org Subject: Re: [PATCH] make atomic_t volatile on all architectures From: David Miller In-Reply-To: References: <20070808230733.GA17270@shell.boston.redhat.com> X-Mailer: Mew version 5.1.52 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 564 Lines: 15 From: Herbert Xu Date: Thu, 09 Aug 2007 09:03:27 +0800 > Such loops should always use something like cpu_relax() which comes > with a barrier. This is an excellent point. And it needs to be weighed with the error prone'ness Andrew mentioned. There probably is a middle ground somewhere. - 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/