Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp42433ybh; Mon, 20 Jul 2020 09:51:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKGU9I5CQakENcYIh/KYtFjDf3OxshS83EY5jt2er6b0V9eAnYcFn7HgNJMjZSatzggyXY X-Received: by 2002:a50:82c1:: with SMTP id 59mr8817448edg.295.1595263862974; Mon, 20 Jul 2020 09:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595263862; cv=none; d=google.com; s=arc-20160816; b=VGl9vY0tPTwYDR3e3vDmSM0prNoNpCq63uFwZpzU2vZJFlY+uYn5jYvxJLe4Ppf5Yo NLlngmA3jlX05mcWzp997M7YIns20v9hrQvCLJ5fz+gPD1HjxMoszVicFqxoU575jWwj 3GdSi2uRtokqn5YrSB2C8GxOIrSDJFDsB7eHegQLdk0H6edvIqSb/SuNlqlnFJ37dzjd zWdXxneFVmJEngmbXNCoehE8S9lhOwJ2nIYugAoi7oywS/2NyKZ998v631i8HL0ueVkx WQzfM6aFj3c3sAGn2k4gpsqZA4b8uIW56UncivMQkna7BmLLo9BWlvbFkbHiJgf51sQ6 hGQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SMaxWhwAegvetyWQHJzr2iSeRVKWInsDa9ht3IdzAJE=; b=Ym6sWqKc+JAL+G4sxCAsXWiMTD5y7BvzGuRPUnzpPDTjcCCi6HX/RQtHMh8Anw5/wE XcznGITOFY7JFCVihAwMSdTLRJNHyvOPisakZxApHnSXRzU6g4zKIBzbOzFK22JO4/yY Cxqjsy78wMIlCWGthViJu/qs4o5YOLaMmJz6KFIrg9JqVJgbqXUxmKUT2xAMstod5iGA 7y4r5QctGFSPpZ0qdhMyIgruthZe0kzjh8NqhgbW9ZXHbprkntHi0Rr/oGpFSPFCIq9X eJ0QXEQs6tyQxdcF34cLSQ/mFt70kAvXLTGeOzRFJyLUoIm7aW3T86JYMMQQ8z5OHK1X BYbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=jKU73cfB; 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 q22si10398518ejx.87.2020.07.20.09.50.40; Mon, 20 Jul 2020 09:51:02 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=jKU73cfB; 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 S2389180AbgGTQtR (ORCPT + 99 others); Mon, 20 Jul 2020 12:49:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728890AbgGTQtQ (ORCPT ); Mon, 20 Jul 2020 12:49:16 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37E71C061794; Mon, 20 Jul 2020 09:49:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=SMaxWhwAegvetyWQHJzr2iSeRVKWInsDa9ht3IdzAJE=; b=jKU73cfBY8hjKJ+jOGtnVQYdiv tpvcuG2saC1Mh+jzmMArY69tlNIb76Mftum0Mz3M04j3/+Qr+wlSczz+gksG807GoB8HOjv+3wwK2 TL8uf++3Gm+lglg6jrlEDt0yTtIkrQzJWlOkqkvM0joh5Zh9yCq1/wd+tp7XaqVHz+ZprcVsqOKZe d4MrIAIWZGHJ89JsjqjdYwn/tSmQrcLOKiOsoFZdmi8evTDiLOUM8wO59BXAPgsrHsl1tuEIf97ux MIUaF4Kauhrk3/f4UJkMKxkuzFigWbGZRelDsf8GLxFdtfp+WLKTI6a4pE5WQ4kyIEIF/E59O471y hhqqbiGQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxYyD-00048y-Kj; Mon, 20 Jul 2020 16:48:54 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id DFB43307A6B; Mon, 20 Jul 2020 18:48:50 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CE8C723426BA2; Mon, 20 Jul 2020 18:48:50 +0200 (CEST) Date: Mon, 20 Jul 2020 18:48:50 +0200 From: peterz@infradead.org To: "Paul E. McKenney" Cc: Matthew Wilcox , Alan Stern , Dave Chinner , Eric Biggers , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, Akira Yokosawa , Andrea Parri , Boqun Feng , Daniel Lustig , "Darrick J . Wong" , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , Will Deacon Subject: Re: [PATCH] tools/memory-model: document the "one-time init" pattern Message-ID: <20200720164850.GF119549@hirez.programming.kicks-ass.net> References: <20200717044427.68747-1-ebiggers@kernel.org> <20200718014204.GN5369@dread.disaster.area> <20200718140811.GA1179836@rowland.harvard.edu> <20200720013320.GP5369@dread.disaster.area> <20200720145211.GC1228057@rowland.harvard.edu> <20200720153911.GX12769@casper.infradead.org> <20200720160433.GQ9247@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200720160433.GQ9247@paulmck-ThinkPad-P72> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 20, 2020 at 09:04:34AM -0700, Paul E. McKenney wrote: > 2. If we were to say "unlock" instead of "release", consistency > would demand that we also say "lock" instead of "acquire". > But "lock" is subtlely different than "acquire", and there is > a history of people requesting further divergence. This, acquire/release are RCpc, while (with the exception of Power) LOCK/UNLOCK are RCsc. ( Or did we settle on RCtso for our release/acquire order? I have vague memories of a long-ish thread, but seem to have forgotten the outcome, if any. ) Lots of subtlety and head-aches right about there. Anyway, it would be awesome if we can get Power into the RCsc locking camp :-)