Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751093AbWCaAtj (ORCPT ); Thu, 30 Mar 2006 19:49:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751090AbWCaAtj (ORCPT ); Thu, 30 Mar 2006 19:49:39 -0500 Received: from mga02.intel.com ([134.134.136.20]:22676 "EHLO orsmga101-1.jf.intel.com") by vger.kernel.org with ESMTP id S1751083AbWCaAti (ORCPT ); Thu, 30 Mar 2006 19:49:38 -0500 X-IronPort-AV: i="4.03,148,1141632000"; d="scan'208"; a="17431633:sNHT15739773" Message-Id: <200603310049.k2V0nVg26779@unix-os.sc.intel.com> From: "Chen, Kenneth W" To: "'Christoph Lameter'" Cc: "Nick Piggin" , "Zoltan Menyhart" , "Boehm, Hans" , "Grundler, Grant G" , , , Subject: RE: Synchronizing Bit operations V2 Date: Thu, 30 Mar 2006 16:50:15 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcZUXF/8Axv0vKWlQlmtAqC+YvxKDAAAFqYw In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1073 Lines: 23 Christoph Lameter wrote on Thursday, March 30, 2006 4:45 PM > > I would make that MODE_RELEASE for clear_bit, simply to match the > > observation that clear_bit is usually used in unlock path and have > > potential less surprises. > > clear_bit per se is defined as an atomic operation with no implications > for release or acquire. If it is used for release then either add the > appropriate barrier or use MODE_RELEASE explicitly. > > It precise the uncleanness in ia64 that such semantics are attached to > these bit operations which may lead people to depend on those. We need to > either make these explicit or not depend on them. 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. - Ken - 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/