Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp764118yba; Fri, 3 May 2019 10:04:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHQqUImlY7lx6q/7BwdoZJyhdXOL9nN44OclneETwGKdjY72O+Brv1Evcvqjp6dTNwclJo X-Received: by 2002:a63:5c1b:: with SMTP id q27mr11953662pgb.127.1556903069089; Fri, 03 May 2019 10:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556903069; cv=none; d=google.com; s=arc-20160816; b=LhYrxPl7Ttvb6MPDObXIaFqnJxPl+MKHwn2eoyGRxTVBdqGtY5S1qZtYZbZ3Y3D8s6 1V4gPToGYGxDfRqQIhtoxoUl0o3s8NE7u4dh4XHB+9vv1kmMm5M95hQaFkI6SfyBJ8p1 CFid9QXqLiljjKapxE54tr+66V4amOxaIT/e2663FbME6QfxWLcPwkS3+x3d6R2BIbC7 9HIhG5gZ1KNqRsT5H0Nii6q6rzW0ktYvJ+JaBmogWTCtIIuyS2TNF0VncJKiWrbJifNU Lx31tjdrdZDUSKerEtm7mfOi4+ayk0yxHsAn5JEIX74z9Ci8Qi1LBtV6haqIfjX/3CqJ vKLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=f8wSjJ87f85s5sybHGpZ4OlS7anrKlXCSX6wnmocWaQ=; b=ZlFvOTyR+3hDcJ8BKDnz+KTEHikqnV7hMMVdUmNJFwHo5qoyvTUjaBoUd7ufvnt2HZ G61zM0agsuCw6xbwM3GNgP+TZKjP1B+OxRrmyBywdgpWcwGMPmEPgywE5S6NBWHcWL0E 9Vd+/cp6z0t8nkxMr+cmCO1tZXjw5bNfTyJ0v4seI8iwkQFQsfvqY8tWUAzTp/4OAC+T rqxmmhiB4+Ljq7K0vguJTcRJX5PAxuV7R6b0iRmSGYyb+gCdbjRI7sIJLekgptRkxb6y S1k1+45Qsh6Gf7qzluqA53h+0WuQikBnR2odbN1lHAs5T/jRbvZLartaxOgS1fE3Z7lV Z7ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=nPlN06eY; 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 g33si3018011pgb.192.2019.05.03.10.04.13; Fri, 03 May 2019 10:04:29 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=nPlN06eY; 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 S1728455AbfECQeO (ORCPT + 99 others); Fri, 3 May 2019 12:34:14 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52528 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725809AbfECQeO (ORCPT ); Fri, 3 May 2019 12:34:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=f8wSjJ87f85s5sybHGpZ4OlS7anrKlXCSX6wnmocWaQ=; b=nPlN06eYiVMd4BhKWEoEltJe1 vjzyN8kpvtiCH1EQrdhcogrwESSz+S8qU6Sn7tOEPrXod1jpE7u95MMYWKCD726B8WC6/PMoQwhV1 AnNhHauYZVDaDpoXzfOL0V1iVW9iZ5Iq6/NHI2tGzPvQMZsRbhM6KEL5A/9XylkKdDOzLs7B0Xz5y Khvu9nxVpLFEuyjDQGIaQobcabArOPrtMt9NJBYUd+iXI1g512MiCD4RDfNxsevt2IT749vge3Xgb isvwpO7MAG1dqOdncnaBP0JBZQNDOpnzhAx5jerNuy4Vl/fT4GlJUdkTAl3AtJtIIagrsP3mRME2G qY6UkwKcQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hMb8X-00068T-3j; Fri, 03 May 2019 16:34:13 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 98487286B6529; Fri, 3 May 2019 18:34:11 +0200 (CEST) Date: Fri, 3 May 2019 18:34:11 +0200 From: Peter Zijlstra To: Alan Stern Cc: "Paul E. McKenney" , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: f68f031d ("Documentation: atomic_t.txt: Explain ordering provided by smp_mb__{before,after}_atomic()") Message-ID: <20190503163411.GH2606@hirez.programming.kicks-ass.net> References: <20190503151915.GD2606@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.