Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7619745ybi; Wed, 5 Jun 2019 21:52:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXtudLOkm9XpKA/YxJk8YUxwbTWmRuNN0K4FLyOvVjm8Xe4aoB7BPhMJmelbCVsX3O4iby X-Received: by 2002:a63:d103:: with SMTP id k3mr1457185pgg.189.1559796760891; Wed, 05 Jun 2019 21:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559796760; cv=none; d=google.com; s=arc-20160816; b=QJHhIW1973St7qc5ZH3bciaZwe/9W65KM+h7oUBgXBqWEZYXCJmPxQ8ExllUJEFuOY m5EHnVLd/vYs+LH30NTIpnFVr8MEzVR4/V5QSXKAcRbzb5xMmOHN82rL6MWnMG8SSE/e C5gcTxcKYr2dy+7p2/BgUPzq3wMu8oHA/HIGi3jUsXEhMshMSqRhu/quYdFDeh2BDiSG ip7Ew/Iq3rEG/tsjc3bwiooPbe1cfydxPVz0nh7fxOH5Eh08TeEhpGAK+IEzo43W065y ax6UVdwgYv9xTdlWoBLBpZvQv8HBW0DP5wgYB3cRIVR3d2skweHcbjZ6Wdq6+I6HraqW JszQ== 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; bh=eBU5ml0zoaweySGV1VcLXg2wgyIxEUKBi55JFwgkfvQ=; b=E/TYjbt+Ud/IZpy8JoA8uo8nh15dZs1zTkLhdqAitawBlUZE8NfY9U0M5Vm22J3OO+ ojWLrkgHB8r9Cadd+sryRTHvjVVG3qdUPzp5MqUSAnx7Vq5jnFGohEX5zWdgvyCeV8JC 3SyiEgsxIYqtd8gQxdZZsJ2W/99wCGGr3UWT3yd4JVDamDLsR7WZ4oGSNQTjp1MkbqJ1 8zFThhhXpx/qQplQGfFWmRaU+AcdyfQIu5mD1l3UAsH4tO7dedlbcpPV+2iu0p11xRuD vcQVRUciZth4YC5otevuU//Vw2ZNO1UHedzKwqATjQYS6D1uCPyH+ih65/wYusebNlC0 FApA== 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 m189si875615pfb.74.2019.06.05.21.52.25; Wed, 05 Jun 2019 21:52: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 S1726324AbfFFEvY (ORCPT + 99 others); Thu, 6 Jun 2019 00:51:24 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:56208 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725766AbfFFEvX (ORCPT ); Thu, 6 Jun 2019 00:51:23 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1hYkMu-0005R1-RB; Thu, 06 Jun 2019 12:51:16 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1hYkMn-0003bD-SH; Thu, 06 Jun 2019 12:51:09 +0800 Date: Thu, 6 Jun 2019 12:51:09 +0800 From: Herbert Xu To: Alan Stern Cc: "Paul E. McKenney" , Boqun Feng , Linus Torvalds , Frederic Weisbecker , Fengguang Wu , LKP , LKML , Netdev , "David S. Miller" , Andrea Parri , Luc Maranget , Jade Alglave Subject: Re: rcu_read_lock lost its compiler barrier Message-ID: <20190606045109.zjfxxbkzq4wb64bj@gondor.apana.org.au> References: <20190603200301.GM28207@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 04, 2019 at 10:44:18AM -0400, Alan Stern wrote: > > Currently the LKMM says the test is allowed and there is a data race, > but this answer clearly is wrong since it would violate the RCU > guarantee. Thank you! This is what I tried to say all along in this thread but you expressed it in a much better way :) -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt