Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2137089imu; Wed, 12 Dec 2018 10:06:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/WdqPbas8mS/Lhs7Q8Q92TfkOLNHCnQmDpnREoMnyYPIvWoDf8eut2JW9dfeOnbdjz7/378 X-Received: by 2002:a62:130c:: with SMTP id b12mr21213579pfj.247.1544637981572; Wed, 12 Dec 2018 10:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544637981; cv=none; d=google.com; s=arc-20160816; b=zSJyj6CSKkhHSyfp7+3Z9KdqAyyUeyfXPMT+iicPFVLZPYRCSACHF0/g25WzJQVWme 9GSPWf4iQvQBGLHyuOLEfD2jn6QNMyWIHShI5Rx+mJnSrXfNaqWPmnbBM/aUxoFS/bFY YlT7yB2EbJ4ysR5Ran4Z/ArmThKzQpVtxQI4sC0PCo8rqUo4K9NcBogp4KWXbbJXee2C yr/kp4gJ40gGEV8tV6fdG0yy1bo8xb93RtJaS8t7o9HQHVH0UKT9r2nJfAikC4g4q4El M2puhyIXCUQoIqdJ7P3Q2MRiC8mTt8m56Exm4OFtAmfJKGxaUWTVVZv3JZ2BhMdykSn9 8fgw== 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=0sshh8/QguW/3HpAZoCSnC3deeBWTMIXczHEZb1lX4s=; b=fbh9IIpphr5ZHPjA+IDGbLNWBLnDWCnAzuIhVYrDc9C+UDaSWG59uF+TaLapfdQEWw Sj/rIVcZ/IrymfE3zcVSI3jHgL1M//EbIT+Yb/iGfvJR6MxwTgqqXL5mCnxKp8S9nQbl NNJURlwwoSN8yfdnfxiyOcfwv+81SLdJ4LPvxyyc1Fngs3XLb+C1YdGf6G4CiWPwjSGo OdA6jUEPRPl8QC8GjMToxqDPqtQqb+nsDZWxvL+kfp7i47d1JE4Z8zxQx+/W0pi/UvD/ tAedNB+TXL4C/tSRSVnxl6iY3sIqhLKMD/V2Up83tRszL0l1Olc70nWjFcM8FHSwo/sY WW0A== 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 m76si15690537pfj.48.2018.12.12.10.05.51; Wed, 12 Dec 2018 10:06:21 -0800 (PST) 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 S1728077AbeLLSEp (ORCPT + 99 others); Wed, 12 Dec 2018 13:04:45 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:55208 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727808AbeLLSEp (ORCPT ); Wed, 12 Dec 2018 13:04:45 -0500 Received: (qmail 4736 invoked by uid 2102); 12 Dec 2018 13:04:44 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 12 Dec 2018 13:04:44 -0500 Date: Wed, 12 Dec 2018 13:04:44 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: "Paul E. McKenney" cc: David Goldblatt , , Florian Weimer , , , , , , , , , , , , , , Subject: Re: [PATCH] Linux: Implement membarrier function In-Reply-To: <20181212170706.GA17397@linux.ibm.com> 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 Wed, 12 Dec 2018, Paul E. McKenney wrote: > > > > Or am I still missing something here? > > > > > > You tell me... > > > > I think I am on board. ;-) > > And more to the point, here is a three-process variant showing a cycle > that is permitted: > > > P0 P1 P2 > Wa=2 Wb=2 Wc=2 > mb0s > [mb01] [mb02] > mb0e > Rb=0 Rc=0 Ra=0 > > As can be seen by reordering it as follows: > > P0 P1 P2 > Ra=0 > Wa=2 > mb0s > [mb01] > Rc=0 > Wc=2 > [mb02] > mb0e > Rb=0 > Wb=2 > > Make sense? You got it! Alan