Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1640075pxb; Fri, 10 Sep 2021 10:14:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLNHeNluXAq6VcgVdGWBrnh+cs0lar5pyUaB6tQSVVuUF3PGBpCx/hCSAtjxNH2cMsm5h0 X-Received: by 2002:a17:906:4c8c:: with SMTP id q12mr10615189eju.254.1631294089284; Fri, 10 Sep 2021 10:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631294089; cv=none; d=google.com; s=arc-20160816; b=JqqVTj5gWwqhR6NsSualXTBZ78zg1zeLBe1c4zdNt4xM0Mm0bl4i8IiBKMkTxkcGbT t6Ptxo4drX/iEfNhPNb8lV8Bc19KhZ8/sRrENBykG5AYl9WH+EouesrCo0uwrOWizd0b nxeHsdsqLRXptv6EyIATxrhWWIoP7DMq3tWlWQboNoDygy1WbJs+fEk9t2MeaqUEtlTQ iNVvTdqXIUfl7Fq0v49MC9PqTV4kPsnVpz0j2LdIJNomtxcmxn/3nVqh4HurEj3HmclX 9Jc/7Nu0Je5pt8ycCtgHSo218EQKA5CvvCYewWC8hR+jszXDd1Osg7WP7JaV3uzJcoaN zXmA== 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:dkim-signature; bh=HeUfcZtIsgblcevNKKHZTsW8AiwklxONuJ7zMC1Q4A4=; b=d++G4KYSZiRxrIClreXeY6mVANPYP/YIONxieHfJ3VhwOBWMTmsW8FfBvfcRbbFpbm y1be/TUaAHuZjkCVSj1TW6AY6az1Clb2xWo+ndTXJI3VdXg6XCap3rTTexe6xvOhISSX wyqA5lnUG6THA/DfChxec90OUvCetqEEU1rZ+aaxxew5fLdw0ml6nH35GKW2fk3Rktd/ uirZK/tToDWbmTPDS7WqJOj4s4oGdfTg7JwSTN1SoLTyTQM3mgBQxVjuEa7nX/72+S6y SyfWYPAPMiZbQeBQMAc3wEmkqvERWary3O0o8i3dzfuYN95dkLrXuaSzRyIY7+dlOo1e 7g6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=mbDUkgGe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si5780949ejv.301.2021.09.10.10.14.24; Fri, 10 Sep 2021 10:14:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=mbDUkgGe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229682AbhIJRNy (ORCPT + 99 others); Fri, 10 Sep 2021 13:13:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231414AbhIJRNx (ORCPT ); Fri, 10 Sep 2021 13:13:53 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D1D5C061574; Fri, 10 Sep 2021 10:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=HeUfcZtIsgblcevNKKHZTsW8AiwklxONuJ7zMC1Q4A4=; b=mbDUkgGe5rpUkAHXZlugsTroc+ r5erQ0nT4vB2Q3iuUV5Vj3hQdT44+EG4U4uXFu9siBk1N0/Lf5NzXNg5CqS8sXUdBDWiPWIYExsBq 1D8FC1hS/5zWHDlm/if1TN5FiD7aOYtTwBb75WobQhpPTkXiXhMI3rXu0aJfpEbhmkz3sdlIVSHjB tcvu/Q/skXk4eJSoq6uSl3Z25lGcRK4XV2G1XwG6Wm4dJ90a7uBywZbawLGUpIaizAXDsXi+G1idg il40O4znQRhg3n//4jzCiwhVccAErWBycWHI/MlLkqNPCaZwdT8DjL8Fv7MKVMoqQrDuuugWsd3Xk 3OEIuM8w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mOk4c-002B8V-EA; Fri, 10 Sep 2021 17:12:22 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 99C1498627A; Fri, 10 Sep 2021 19:12:21 +0200 (CEST) Date: Fri, 10 Sep 2021 19:12:21 +0200 From: Peter Zijlstra To: Alan Stern Cc: Boqun Feng , "Paul E. McKenney" , Dan Lustig , Will Deacon , Linus Torvalds , Alexander Shishkin , Peter Anvin , Andrea Parri , Ingo Molnar , Vince Weaver , Thomas Gleixner , Jiri Olsa , Arnaldo Carvalho de Melo , Linux Kernel Mailing List , Stephane Eranian , linux-tip-commits@vger.kernel.org, palmer@dabbelt.com, paul.walmsley@sifive.com, mpe@ellerman.id.au Subject: Re: [tip:locking/core] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire Message-ID: <20210910171221.GN4323@worktop.programming.kicks-ass.net> References: <20210908144217.GA603644@rowland.harvard.edu> <20210909133535.GA9722@willie-the-truck> <5412ab37-2979-5717-4951-6a61366df0f2@nvidia.com> <20210909180005.GA2230712@paulmck-ThinkPad-P17-Gen-1> <20210910163632.GC39858@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210910163632.GC39858@rowland.harvard.edu> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 10, 2021 at 12:36:32PM -0400, Alan Stern wrote: > +Here the second spin_lock() is po-after the first spin_unlock(), and > +therefore the load of x must execute before the load of y, even tbough I think that's commonly spelled: though, right? ^^^^^^