Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp299373rda; Sat, 21 Oct 2023 08:10:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH09dXzuzXZOyqkUzXH3/9RH1KNzJ6gXZ69YaUeyw2qrBDnclqOtd/1mZddbwcL2unlY6Q1 X-Received: by 2002:a17:902:f392:b0:1ca:884c:e48a with SMTP id f18-20020a170902f39200b001ca884ce48amr4157901ple.0.1697901046643; Sat, 21 Oct 2023 08:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697901046; cv=none; d=google.com; s=arc-20160816; b=U3f3O8NZDzRhx9f62xkj65oE1OsHEtAWdoe385gmymJ75aotAS3+mxIlH4U6Xjab24 udHDxKsuZRdh31+lYPvwT441w4ziad7Hg8moMIr27WA0dKnkZGxETuN69orWfoChCvUf pCd2vGdq0Evz+Mo2tOz6giQTdJEeSeyDqPVlreN/yEGSFYn256jpvsuHONbJhI7uYqll HG/lD0vIaVO86TWXASZvlGP5cFfqaCnY1Ra1UnLcqgE9PI2UienrMweG9hPqkNA0EBLi Y28NwMRGgc3poAJBDSQYPXX84uvT1kFu/sgE2UHooay3iDL4Hga0Q3Cu2wYwH6Goohab qgWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=TYuJtKYdaA8h0DerAwWMIYwp8GKebKMcz66Gdnxmo6A=; fh=NdzKOtCvamLnL9rctRFnORXQ+tn5QCoF0fZ3XttdWY0=; b=WXO6ib/JSkemHOhU0MugjqdYqEA1gXg1Zs0P+9zpiSmCWONRy04fup61e/kRmzMIZk lNH8nIt01eJufhWuF3NEZgBfJLJS+VofSShNHRt/4e0y4Kq7YemVOhaYpJFhyljAYWxV l1Am1kF/w6QbFts0pnXifOg2KFb6ToVqihKQ3+gsx9WeuB+kV1OwZaQiVt+otTbWt2It fCwUZWdgzcdRr20jdeuJClrojQt4lqkWCfXfmm5gusrP55kchwCwgsb/WIMllI0OGj/b awaK8CH0SiUeHAVF+LH3zrsSJ4wmLQGLevA2jFJ24vr6LpsgqehqC7fsjk9zennJoAcS Qfyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jM6G+anD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id kb14-20020a170903338e00b001c9b5e4be5fsi3483426plb.396.2023.10.21.08.10.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 08:10:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jM6G+anD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id BEF578098408; Sat, 21 Oct 2023 08:10:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231550AbjJUPKb (ORCPT + 99 others); Sat, 21 Oct 2023 11:10:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbjJUPKa (ORCPT ); Sat, 21 Oct 2023 11:10:30 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35662E9; Sat, 21 Oct 2023 08:10:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA224C433C8; Sat, 21 Oct 2023 15:10:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697901027; bh=9s38JpV39JHITXceHtr6xPGLgLx3TwzUq3gvISUeaoU=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=jM6G+anDwT0LMCvqUzP+p4YEzvZK1wnJ1JZEJQhsIYnkY/AQ+vJsmWzAUwwpJXquk 9ozjaaz+ic6K7d0B7cOmulWqg6IB9lPJZRJSdQ6J1KRmnvtip/dQtdOryZOCOUC0bU EGYKg4/2fN/vYqP6M4sYLAklWKeWeVyyPpXXIDFt/Lzxu7h7rERMh8RbUBsecrAT7c qbL8t71/S2LETihtQkZYn2uwiuHRNBQDM+wr3woBd/j+fJUnsHe+a3JNDL46uqQEaK p5RDyY+opgf8Hy9OqXb8SKvTYycc8wLVxbgIKjCsf6KFvbzCDUOhNBQJANno6HuKGy fK/uhOUUGAXEg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 5201ECE0ED0; Sat, 21 Oct 2023 08:10:27 -0700 (PDT) Date: Sat, 21 Oct 2023 08:10:27 -0700 From: "Paul E. McKenney" To: Jonas Oberhauser Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Akira Yokosawa , Daniel Lustig , Joel Fernandes , Jonathan Corbet Subject: Re: [PATCH memory-model] docs: memory-barriers: Add note on compiler transformation and address deps Message-ID: <8f2ed577-424a-4114-8c90-90ba657e08db@paulmck-laptop> Reply-To: paulmck@kernel.org References: <4110a58a-8db5-57c4-2f5a-e09ee054baaa@huaweicloud.com> <1c731fdc-9383-21f2-b2d0-2c879b382687@huaweicloud.com> <2694e6e1-3282-4a69-b955-06afd7d7f87f@paulmck-laptop> <0bf4cda3-cc43-0e77-e47b-43e1402ed276@huaweicloud.com> <79233008-4be2-4442-9600-f9ac1a654312@paulmck-laptop> <591279ff-3316-d64b-8b25-6baefcecaad1@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <591279ff-3316-d64b-8b25-6baefcecaad1@huaweicloud.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 21 Oct 2023 08:10:40 -0700 (PDT) On Sat, Oct 21, 2023 at 03:36:21PM +0200, Jonas Oberhauser wrote: > > Am 10/20/2023 um 8:13 PM schrieb Paul E. McKenney: > > On Fri, Oct 20, 2023 at 06:00:19PM +0200, Jonas Oberhauser wrote: > > > Am 10/20/2023 um 3:57 PM schrieb Paul E. McKenney: > > > > On Fri, Oct 20, 2023 at 11:29:24AM +0200, Jonas Oberhauser wrote: > > > > > Am 10/19/2023 um 6:39 PM schrieb Paul E. McKenney: > > > > > > On Wed, Oct 18, 2023 at 12:11:58PM +0200, Jonas Oberhauser wrote: > > > > > > > Hi Paul, > > > > > > > [...] > > > > > > The compiler is forbidden from inventing pointer comparisons. > > > > > TIL :) Btw, do you remember a discussion where this is clarified? A quick > > > > > search didn't turn up anything. > > > > This was a verbal discussion with Richard Smith at the 2020 C++ Standards > > > > Committee meeting in Prague. I honestly do not know what standardese > > > > supports this. > > > Richard Smith > > > Then this e-mail thread shall be my evidence for future discussion. > > I am sure that Richard will be delighted, especially given that he > > did not seem at all happy with this don't-invent-pointer-comparisons > > rule. ;-) > > Neither am I :D Why do you want to invent pointer comparisons? From a practical standpoint, one big problem with them is that they make it quite hard to write certain types of software, including device drivers, memory allocators, things like memset(), and so on. > He can voice his delightenment or lack thereof to me if we ever happen to > meet in person. More likely to me, but I will happily pass it on. > > > I think this tiny rewrite makes it much more clear. Specifically it tells *why* the text is historical (and why we maybe don't need to read it anymore). > > Good point! I reworked this a bit and added it to both HISTORICAL > > sections, with your Suggested-by. > > The new version looks good to me! > > > > > > > The longer-term direction, perhaps a few years from now, is for the > > > > > > first section to simply reference rcu_dereference.rst and for the second > > > > > > section to be removed completely. > > > > > Sounds good to me, but that doesn't mean we need to compromise the > > > > > readability in the interim :) > > > > Some compromise is needed for people that read the document some time > > > > back and are looking for something specific. > > > Yes. But the compromise should be "there's a blob of text other people don't > > > need to read", not "there's a blob of text that will leave other people > > > confused". > > Fair enough in general, but I cannot promise to never confuse people. > > This is after all memory ordering. And different people will be confused > > by different things. > > You can say that twice. In fact I suspect this is not the first time you say > that :)) Easy for me to say, "that that that that that that that that that that"! Thanx, Paul