Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1586110ybh; Mon, 20 Jul 2020 02:02:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxe37pjYSPNR1HicwBATxJDwKc/QF7yPG2gUiE52OI/hRYZqE1r5zHc18I5ueEjtCJ5EMsi X-Received: by 2002:aa7:c31a:: with SMTP id l26mr19841411edq.61.1595235743482; Mon, 20 Jul 2020 02:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595235743; cv=none; d=google.com; s=arc-20160816; b=HfYkD/42pOD+1yBlfsXQkvrfytIXS2/2pb24/jRaOPobvZAx1Cqt+t1SwqqfiMGoj2 GY+B5XAHeK5Q7JBv2gj7PeYenpevvvKsHvEtBJi+3rtYWpfKnr7JrBCuINhGDiGbH/2I SOAkPZWRI+asRAXr+Z8DIGC+qOoY2YtfLB2KCSPUq9jA5vQBXHkwoJJYQqDW5LPUVcZP KryUx7/vy17NWApLk0hYElhaIcejkuGf/o6KKV0TTtob8lMHSh8iayQEFAOKGcV4GHsc SijSfnVVTtEkvxN8RFyjbj8PJOmPOxZ82IAnZ2s62RAZqMsGFoB8LYjgu6UCdXU/pDbO zcmQ== 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=LZEFw1oLYgj4zsscQtdY4wJjNPA8ihmwOeaubjV41Pk=; b=FSnVEORrc7dUfM+1BU4Zz0SVKvQVJ7movXi3t/82BPhdB/mG/b1rI/RCbc9g8CFD7n rlBACA2T/jl6RGIn+V14pO+Upb6zSVGNMIGqDR5tZChOJWBLIhKvJL20yKmQeI8US2F3 2kLdOC8ch4LPbhyA5enD00UBbJVV/E1Jt6ri80lKrKRmPLVcN1dwjf8eUThvPrFFkIoU 8kIYn1WcemZV10p/wSUYxfi7r+duee1K4ab4C0zuIIBJTJKkUu8eio35DpGVONpI6AjB kk4AuOYeiyv9M3F7J49uxCuFWeWUV5+9TeIiHLjYdxhpNyJ5CqD5IhsCJmhjXcDfMrkT vpjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=oc0IUr21; 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 u25si9406013eje.33.2020.07.20.02.02.00; Mon, 20 Jul 2020 02:02:23 -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=oc0IUr21; 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 S1727991AbgGTJBV (ORCPT + 99 others); Mon, 20 Jul 2020 05:01:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbgGTJBU (ORCPT ); Mon, 20 Jul 2020 05:01:20 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA252C061794; Mon, 20 Jul 2020 02:01:19 -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=LZEFw1oLYgj4zsscQtdY4wJjNPA8ihmwOeaubjV41Pk=; b=oc0IUr21+u3R3HHyVc1+ohxgyl 2z+5E1O/YRnEKTIQlTiPNRaYbA9cD+zV/YrdzOno4RV55SiABJACPM7N5pw4qV1fgUX76id9TMEVF zlLv6R4dbfd15db/jFUWEJjrDIfhxSBWh6Ppfrc/542neYLxXw5lVC0IK6Q8EIspILT+WikBiEMFm 0snzsabiSnAyw2g0n3gT6UpKBvBc+w/09bOD0GIvfWR3Q3vOd2DG2VB+BevBiTQ3nVvn653RJjnps kpaxpkGT07Um/Fy19L2KrvtATLeo5rbgftQhXX3NnDWasECY0nmtJIF1oklga9nIuHvB+NcLQQz3M DKVkdjWA==; 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 1jxRfI-0000Iv-3d; Mon, 20 Jul 2020 09:00:52 +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 A99F0300446; Mon, 20 Jul 2020 11:00:50 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 91FED23646C08; Mon, 20 Jul 2020 11:00:50 +0200 (CEST) Date: Mon, 20 Jul 2020 11:00:50 +0200 From: Peter Zijlstra To: Dave Chinner Cc: Eric Biggers , Matthew Wilcox , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, "Paul E . McKenney" , linux-fsdevel@vger.kernel.org, Akira Yokosawa , Alan Stern , 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: <20200720090050.GK10769@hirez.programming.kicks-ass.net> References: <20200717044427.68747-1-ebiggers@kernel.org> <20200717174750.GQ12769@casper.infradead.org> <20200718013839.GD2183@sol.localdomain> <20200718021304.GS12769@casper.infradead.org> <20200718052818.GF2183@sol.localdomain> <20200720020731.GQ5369@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200720020731.GQ5369@dread.disaster.area> 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 12:07:31PM +1000, Dave Chinner wrote: > The whole serialisation/atomic/ordering APIs have fallen badly off > the macro cliff, to the point where finding out something as simple > as the order of parameters passed to cmpxchg and what semantics it > provides requires macro-spelunking 5 layers deep to find the generic > implementation function that contains a comment describing what it > does.... > > That's yet another barrier to understanding what all the different > synchronisation primitives do. Documentation/atomic_t.txt ?