Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp719279yba; Fri, 3 May 2019 09:20:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlgsBGyJoIJyK1Vai0Lm8b1nPeE6fL/8HK6IILzRsV5GRc/zQwm7rZ/F/4TkXfJd/MUUtz X-Received: by 2002:a63:dd58:: with SMTP id g24mr11322089pgj.161.1556900432596; Fri, 03 May 2019 09:20:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556900432; cv=none; d=google.com; s=arc-20160816; b=rQcS0VR35mBbNI/k+yQs8/a+ein/SLPj8iisG8rgNq8OlPukAB57M/FVinJ7uzCUv1 51VsZHrelxqGFhtCVpVV5gKcoRCI0Utoef3lA3Gx2VXqqCG6KP4UniAYAFXV0MnCMoOk BZa3M0O+IGdlr9Y33e+22t2uQ7Xyio4XjESpe24Jm5Fa0YCBqY6AzMwaXt6cB8FNfQ7g TTkDU42AJ0otYXsBitVZdNKSZGVXXzhae9SfQwMDa2E9MyhBS5njr7SAgRxy+URHbbCm fkBmZ+3+RnGVVHj151MECkXxw3q7tl9gJX/9B6YBfyRNpexJ5r0uweH07hmgo4xwGxEX n6TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=677CNP1iaVVFql4DchK9zcZAT9k14Wjkbtcgpjieb/Y=; b=s+msdpDu2RcIsKRB/cXK88GDKCE1ISWez2O+9qhW/7XhMs6uDTjYXOtBCnlKQVUwJL t6xIKuHcQ2+DbaBnernJtgL30bZSKzDM+vLunAskoakZsua+xV0rhyMb1sSXjaqWlEY3 jlLcL1v8p1j+0ha8LobXc0aPG/vqeBJPGB1qyFaFJYPcxqw6uymAzwL35QxQmbCnwyYe pSMPO9ohCURmMf8YMefb5Z5jwW/gg9rzIVWLZlfHJUQ2NGt1hmMNR/ImovHbYWwZBPw7 xng2LCkuKMyoIxQZhQlI9g3ZAdQnev5coJQ+1ohFsq2GwiZxcfzIB2xnjP8otmS9jail AJUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h62si2975461pfb.209.2019.05.03.09.20.16; Fri, 03 May 2019 09:20:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727433AbfECQTW (ORCPT + 99 others); Fri, 3 May 2019 12:19:22 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:58686 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726633AbfECQTW (ORCPT ); Fri, 3 May 2019 12:19:22 -0400 Received: (qmail 5873 invoked by uid 2102); 3 May 2019 12:19:21 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 3 May 2019 12:19:21 -0400 Date: Fri, 3 May 2019 12:19:21 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Peter Zijlstra cc: "Paul E. McKenney" , , Subject: Re: f68f031d ("Documentation: atomic_t.txt: Explain ordering provided by smp_mb__{before,after}_atomic()") In-Reply-To: <20190503151915.GD2606@hirez.programming.kicks-ass.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 3 May 2019, Peter Zijlstra wrote: > On Fri, May 03, 2019 at 07:53:26AM -0700, Paul E. McKenney wrote: > > Hello, Alan, > > > > Just following up on the -rcu commit below. I believe that it needs > > some adjustment given Peter Zijlstra's addition of "memory" to the x86 > > non-value-returning atomics, but thought I should double-check. > > Right; I should get back to that thread... The real question, still outstanding, is whether smp_mb__before_atomic orders anything following the RMW instruction (and similarly, whether smp_mb__after_atomic orders anything preceding the RMW instruction). The other changes in that patch (i.e., the second and third hunks) are okay in any case, because they just flesh out an explanation that is already present in the text. Alan