Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751112AbWCaBJm (ORCPT ); Thu, 30 Mar 2006 20:09:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751130AbWCaBJm (ORCPT ); Thu, 30 Mar 2006 20:09:42 -0500 Received: from omx2-ext.sgi.com ([192.48.171.19]:4556 "EHLO omx2.sgi.com") by vger.kernel.org with ESMTP id S1751112AbWCaBJl (ORCPT ); Thu, 30 Mar 2006 20:09:41 -0500 Date: Thu, 30 Mar 2006 17:09:28 -0800 (PST) From: Christoph Lameter To: "Chen, Kenneth W" cc: Nick Piggin , Zoltan Menyhart , "Boehm, Hans" , "Grundler, Grant G" , akpm@osdl.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org Subject: RE: Synchronizing Bit operations V2 In-Reply-To: <200603310059.k2V0x7g26953@unix-os.sc.intel.com> Message-ID: References: <200603310059.k2V0x7g26953@unix-os.sc.intel.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1094 Lines: 23 On Thu, 30 Mar 2006, Chen, Kenneth W wrote: > > > I know, I'm saying since it doesn't make any difference from API point of > > > view whether it is acq, rel, or no ordering, then just make them rel as a > > > "preferred" Operation on ia64. > > > > That would make the behavior of clear_bit different from other bitops and > > references to volatile pointers. I'd like to have this as consistent as > > possible. > > Yeah, but we just agreed that caller shouldn't be thinking clear_bit has > memory ordering at all. In general yes the caller should not be thinking about clear_bit having any memory ordering at all. However for IA64 arch specific code the bit operations must have a certain ordering semantic and it would be best that these are also consistent. clear_bit is not a lock operation and may f.e. be used for locking something. - 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/