Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13788401rwl; Wed, 4 Jan 2023 13:07:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXvINvmXCQZX5Pkk/3REFADxMPkqxje1G2dCWaMvT52RxmdIoxkZHgvfbdVgnaPTDjyMmqLt X-Received: by 2002:a05:6a20:e615:b0:b0:3512:4d5e with SMTP id my21-20020a056a20e61500b000b035124d5emr55494281pzb.18.1672866472090; Wed, 04 Jan 2023 13:07:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672866472; cv=none; d=google.com; s=arc-20160816; b=apWmhPSMwksZ8lPI3FzkKRX70V1ks3R3q9oCXTSQJipbwLlKSFB8393Mb+O3PVTLWH mptXc2sNq1rgKLaKIcr6OtRl7cfyZlyQcn7ddqAlo+3wv7cFRGB15yVN/QVeRDvc1N39 Z9FDOhv5IA1BcguXsH54PZ8ouqyFR7pVDL+YtKqjcGyx2FmVuC6TQOSFWpGyreBKgf9W 8sTY5W7IMl81owN0dNmYurt2Mcp7Rlsxi4Xnr6FHB/TdZ3jS7rJqkqvfZ6fEzWFAduJW nbFgW+2vPYBLkoXYOx/+8rSP/xUmD8Zz5a7HE4QIJdqILB8R3W0Bgrv5EwrDFl6Gn4kD ThhQ== 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=E+k3vsMCUkXf3U/TD/zOrrgGNrqERv8v39n52hM30ek=; b=qi5kOywPO0DndYYyb6vZsK/Wp2oIFffoC3rMAjgpq8nfaIQ+b3rSKRO87vvnETVM8s Mor83csyr926xtZXmKw+eLoqVRzl89DhPlsp8e9Ptx1h11GVA3CefvWZrFEWDviNMjbu yOChUBw4ak+DSoMgX670c5mZ7uajRpvP2cRiR4IW7xfwioVdc58E/rov2MrdnQsel/hW EfWJz6Dtzl9eN5tG5kTgVoOwiorHSRdy+MjYYtvh3qZxjKIF0HEuZgN0S70ZMb+XOQHC blnMUjXHzHoWFx4fOnaQeRy/+T7K/gg6fn3ifpjRyK8P1ew9NsRxtRYx8PrzEwYqtzrm A5cA== 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 4-20020a631944000000b00439f026cf5dsi36033559pgz.612.2023.01.04.13.07.44; Wed, 04 Jan 2023 13:07:52 -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 S235245AbjADU67 (ORCPT + 56 others); Wed, 4 Jan 2023 15:58:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbjADU65 (ORCPT ); Wed, 4 Jan 2023 15:58:57 -0500 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id BC39015FCE for ; Wed, 4 Jan 2023 12:58:53 -0800 (PST) Received: (qmail 481624 invoked by uid 1000); 4 Jan 2023 15:58:52 -0500 Date: Wed, 4 Jan 2023 15:58:52 -0500 From: Alan Stern To: Andrea Parri Cc: Jonas Oberhauser , Peter Zijlstra , "Paul E. McKenney" , 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> 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 04, 2023 at 04:37:14PM +0100, Andrea Parri wrote: > Sounds good to me too. I'm trying to remember why we went for the LKW > event to model smp_mb__after_unlock_lock() (as opposed to the LKR event, > as suggested above/in po-unlock-lock-po). I don't remember either, but with the LKR event it would be awkward to include the co part of (co | po) in the smp_mb__after_unlock_lock() definition. You'd have to write something like ((co? ; rf) | po). Aside from that, I don't think using LKR vs. LKW makes any difference. > Anyway, I currently see no > issue with the above (we know that LKW and LKR come paired), and I think > it's good to merge the two notions of "unlock-lock pair" if possible. Indeed. It also would eliminate questions about why po-unlock-lock-po doesn't include the co term. Alan