Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp778025yba; Fri, 3 May 2019 10:16:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGtKyFknlKe3FI+MG2uCZo3ewiLmCYZ02wY6Jn6AU7mwUJApGlYAaDe9l1i0+VHItZZpy0 X-Received: by 2002:a62:62c2:: with SMTP id w185mr12392800pfb.237.1556903800891; Fri, 03 May 2019 10:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556903800; cv=none; d=google.com; s=arc-20160816; b=FZNUOaLu/LbVLsy226UUvb1kYEU/Cc4bjZ0Xyh+8exkpndBR7OBcea9yDw3/mKTorU pE7B7ICBVJmZsYgfIA7Q55moHPjxVfPntGnQSEWnHPG3i3+8AqyOGtCCdBevmDxwSRSF Q/BxQ8cSSKSgIS9VL/yhSwBatD6Pdz8danyH9jdyRkvadGSa/29H/I3HGgDVBlx5+TFN Fklbh8KA+jhZZAs9Ivwd269Ul2FhpWGfHYabrU7tC1JOG4r5+pPqDIe6wd6ytpyT2i8k JS5pR0tOo9cgBJNuaSsozVMjO4fPa+Z79nar/zbMVlwDuRD0IVyrnyS2lN/XcXJQ17nU bLiA== 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=heBuLRk2PveMV6DCRpKmNoyiNCdb79mrK2aytuoCKGo=; b=YWgrOo8PunFm7qhCDeJ+GKvNNU18AjteptwQKesEynMUtqq2heqj93eFlziinea0Wm 29Z1OGU1tyJWfS2l1UHPAw1u/e8IAbXoRChMbUQZukAuWbA4u7MceeQfGip7BWGQD1pW VAKrCG1+VR/DKPy8jR2q4qRTCfe2pzKy1qdtC78ZG1a31gR6/MpNxyaTPkLP5a9Lotv3 WYrndxfbHVkd/lQ8pUvYkD+7UZSEklxy2S+WHPtm/wN207mjVk0ongHUJbp9C5I0Ut3S nPkTjSOO956gFVm0RK/pnu4LD/UjbvN4ToR3guKpSxAkobJkZXcDkmPf1yUihFu2lPrL AfuA== 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 k71si852509pgd.530.2019.05.03.10.16.25; Fri, 03 May 2019 10:16:40 -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 S1728631AbfECQwl (ORCPT + 99 others); Fri, 3 May 2019 12:52:41 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:58706 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1728417AbfECQwk (ORCPT ); Fri, 3 May 2019 12:52:40 -0400 Received: (qmail 5909 invoked by uid 2102); 3 May 2019 12:52:39 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 3 May 2019 12:52:39 -0400 Date: Fri, 3 May 2019 12:52:39 -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: <20190503163411.GH2606@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 12:19:21PM -0400, Alan Stern wrote: > > 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). > > Yes -- that was very much the intent, and only (some) x86 ops and (some) > MIPS config have issues with that. Okay, then I better update the patch. Alan