Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751968AbWCNX7r (ORCPT ); Tue, 14 Mar 2006 18:59:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752059AbWCNX7r (ORCPT ); Tue, 14 Mar 2006 18:59:47 -0500 Received: from mx1.redhat.com ([66.187.233.31]:28293 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S1752044AbWCNX7q (ORCPT ); Tue, 14 Mar 2006 18:59:46 -0500 From: David Howells In-Reply-To: <17431.14867.211423.851470@cargo.ozlabs.ibm.com> References: <17431.14867.211423.851470@cargo.ozlabs.ibm.com> <16835.1141936162@warthog.cambridge.redhat.com> <32068.1142371612@warthog.cambridge.redhat.com> To: Paul Mackerras Cc: David Howells , ebiederm@xmission.com (Eric W. Biederman), akpm@osdl.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, torvalds@osdl.org, mingo@redhat.com, alan@redhat.com, linuxppc64-dev@ozlabs.org Subject: Re: [PATCH] Document Linux's memory barriers [try #4] X-Mailer: MH-E 7.92+cvs; nmh 1.1; GNU Emacs 22.0.50.4 Date: Tue, 14 Mar 2006 23:59:28 +0000 Message-ID: <2301.1142380768@warthog.cambridge.redhat.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 940 Lines: 22 Paul Mackerras wrote: > No, that's not the problem. The problem is that you can get q == &b > and d == 1, believe it or not. That is, you can see the new value of > the pointer but the old value of the thing pointed to. But that doesn't make any sense! That would mean we that we'd've read b into d before having read the new value of p into q, and thus before having calculated the address from which to read d (ie: &b) - so how could we know we were supposed to read d from b and not from a without first having read p? Unless, of course, the smp_wmb() isn't effective, and the write to b happens after the write to p; or the Alpha's cache isn't fully coherent. 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/