Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9583562rwl; Wed, 11 Jan 2023 07:29:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXsW2z0vhibeT+0bSi7rL1+R0jKGpEFRnPT+5+0vvweJaWNcoJCgOFAQ3spl21iGXDRWIvjW X-Received: by 2002:a17:906:819:b0:7ad:e67d:f15c with SMTP id e25-20020a170906081900b007ade67df15cmr69206800ejd.48.1673450998320; Wed, 11 Jan 2023 07:29:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673450998; cv=none; d=google.com; s=arc-20160816; b=Psvm1HlUj8QA/5CMwuQp+XxWTYrkg60GmGbABBwuvTHlkc0dRxhjQVQlChJMqcux9U S6dugrs+E1wqlAg8A4PH3ycI9uWdinW72UpnkEywjC/p+Wo1T5t1CGlujwuA+FAABA2I Xk+SIcIJREl32sXBlXc6TbUBtza5djtMWAr1+YTuTbWjeuytbOJvbE73OKOo428oGuEP BSUjauHe9WkQMX82l6eAS0ITlFOzyjFzTxvTg07Ld9pfdcUkLYublSBE9NwYjscqSTQw c1/VdTS+EYVugoXAS+4YE27kv+K+r5W+EvdHZJqUxeKCeP1O3tEOGzol5VXhr9iN5K7F 2EOA== 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:message-id:subject:cc:to:from:date; bh=P4seJHQA9h9VV5zZwQNpBpMQma9CsDVlOdK2cIkH1zU=; b=OpdXBxdtmOeQBgoUjm7dKMxyAllvVDvXQzzTTVlzdIGF31eTV1CMrS2ozlICPg/Y0T Ex09RvfN3E4nsXE7mIQZ4IU1TDGEOixGRXl5fsYhB5Ci6yo3Kc7/ZJUoibLVs4eDQLD3 fd1k5aSnhDp+hH7dOdjl5ud5MTIl11bV9fPrD9AtGaKaMGd9XPbSdUQuGt56Zix83VH4 Ro9e21vmdFTmepoa7YqDNdo1q96fXq1uzvjzrH0gco/VXKOKcHdbrIgRm+DFosUulKX1 z7lrEV6JMScHlZwoUAVmhaOSVJ1zWgdEXsKMBFfYjEoAdX9A9eticYb8r+C9of6jUvxH /vEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he20-20020a1709073d9400b0085ca6e69f08si4035387ejc.586.2023.01.11.07.29.45; Wed, 11 Jan 2023 07:29:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239350AbjAKPGw (ORCPT + 51 others); Wed, 11 Jan 2023 10:06:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239532AbjAKPG0 (ORCPT ); Wed, 11 Jan 2023 10:06:26 -0500 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 4CE207654 for ; Wed, 11 Jan 2023 07:06:21 -0800 (PST) Received: (qmail 713672 invoked by uid 1000); 11 Jan 2023 10:06:20 -0500 Date: Wed, 11 Jan 2023 10:06:20 -0500 From: Alan Stern To: Jonas Oberhauser Cc: "paulmck@kernel.org" , Peter Zijlstra , "parri.andrea" , will , "boqun.feng" , npiggin , dhowells , "j.alglave" , "luc.maranget" , akiyks , dlustig , joel , urezki , quic_neeraju , frederic , Kernel development list Subject: Re: Internal vs. external barriers (was: Re: Interesting LKMM litmus test) Message-ID: References: <20220921173109.GA1214281@paulmck-ThinkPad-P17-Gen-1> <114ECED5-FED1-4361-94F7-8D9BC02449B7> <20230105173218.GB4028633@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 11, 2023 at 11:33:33AM +0000, Jonas Oberhauser wrote: > > > -----Original Message----- > From: Paul E. McKenney [mailto:paulmck@kernel.org] > Sent: Thursday, January 5, 2023 6:32 PM > > On Wed, Jan 04, 2023 at 11:13:05AM +0000, Jonas Oberhauser wrote: > > > -----Original Message----- > > > From: Alan Stern [mailto:stern@rowland.harvard.edu] > > > Sent: Tuesday, January 3, 2023 7:56 PM > > > > That all sounds good to me. However, I wonder if it might be better to use "strong-order" (and similar) for the new relation name instead of "strong-sync". The idea being that fences are about ordering, not (or not directly) about synchronization. > > > > > I think that is indeed better, thanks. I suppose *-sync might be more appropriate if it *only* included edges between threads. > > > There are quite a few ways to group the relations. As long as we don't end up oscillating back and forth with too short a frequency, I am good. ;-) > > Considering how much effort it is to keep the documentation up-to-date > even for small changes, I'm extremely oscillation-averse. > Interestingly as I go through the documentation while preparing each > patch I often find some remarks hinting at the content of the patch, > e.g. "fences don't link events on different CPUs" and "rcu-fence is > able to link events on different CPUs. (Perhaps this fact should lead > us to say that rcu-fence isn't really a fence at all!)" in the current > explanation.txt. > > Following the instructions sent to me by Andrea earlier, right now my > plan is to first address the strong ordering in one patch, and then > address this perhaps unlucky name of the other "fences" in a second > patch. Let me know if this is incorrect, as there is some overlap in > that I'll use strong-order right away, and then rename the handful of > other fences-but-not-really-at-all to '-order' as well. Minor snag: There already is an rcu-order relation in the memory model. Maybe we need a different word from "order". Or maybe rcu-order should be renamed. Alan