Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422649AbWCWSer (ORCPT ); Thu, 23 Mar 2006 13:34:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422652AbWCWSeq (ORCPT ); Thu, 23 Mar 2006 13:34:46 -0500 Received: from mx1.redhat.com ([66.187.233.31]:9089 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S1422649AbWCWSeo (ORCPT ); Thu, 23 Mar 2006 13:34:44 -0500 From: David Howells In-Reply-To: <20060316231723.GB1323@us.ibm.com> References: <20060316231723.GB1323@us.ibm.com> <16835.1141936162@warthog.cambridge.redhat.com> <18351.1142432599@warthog.cambridge.redhat.com> To: paulmck@us.ibm.com, davem@redhat.com Cc: David Howells , torvalds@osdl.org, akpm@osdl.org, linux-arch@vger.kernel.org, linuxppc64-dev@ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Document Linux's memory barriers [try #5] X-Mailer: MH-E 7.92+cvs; nmh 1.1; GNU Emacs 22.0.50.4 Date: Thu, 23 Mar 2006 18:34:27 +0000 Message-ID: <895.1143138867@warthog.cambridge.redhat.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1090 Lines: 28 Paul E. McKenney wrote: > smp_mb__before_atomic_dec() and friends as well? These seem to be something Sparc64 related; or, at least, Sparc64 seems to do something weird with them. What are these meant to achieve anyway? They seems to just be barrier() on a lot of systems, even SMP ones. > Some architectures have more expansive definition of data dependency, > including then- and else-clauses being data-dependent on the if-condition, > but this is probably too much detail. Linus calls that a "control dependency" and doesn't seem to think that's a problem as it's sorted out by branch prediction. What you said makes me wonder about conditional instructions (such as conditional move). Anyway, I've incorporated your comments as well as reworking the document, which I'll shortly push upstream once again. David - 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/