Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4705050ybv; Mon, 17 Feb 2020 04:22:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxJ9n02p4FPruFiLdEaMpLA9pPoaFle7Pq0wupVYvz5TnVbnVe29NixO3HB3+ilozKj8UhX X-Received: by 2002:a05:6830:1615:: with SMTP id g21mr12365000otr.49.1581942130549; Mon, 17 Feb 2020 04:22:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581942130; cv=none; d=google.com; s=arc-20160816; b=mHK9+FrnO78BIuBTzdc4hYWD9WOfxQwXxKjZ1765KZ0j4ZIw45mdcR0SbOCWzhJrEW cjHN485bBBVMcrEkTFev2ceynBplHx2OHudAwgf13qtM57oPg9q/8YVUBQUbz8JhYwnk u0PDn2GN1sD2GV4IXZf5tkZEa/1UFguZMalC3XlCIQXar4NnJhwBErXRog+YWaeDD7fP Zf6jBlIUAYGhrCEeVZ93AMX4VH5Cv184iWp05KUfH6/cPoKp0Zf2OAIMagCBhb+e8Ol+ FubJSr4go3VCFAxB+5ScCU4xv+jUtnpiFrgSNMQr9W7MYsj8qaERlgxXP81n15t2sjMw XDYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=N2KaWUW3ojsaIAWy3SDFA2ekcPzSJz1io3iUAiK0snA=; b=jzxQstdu1ult0XZ0KgAECFN3owmZeejKdBHySytaDH8xWzQBxoHNwK/jh+ZIKNH1+9 tB3VPPej0x/Y4pyXqsLibY1GXRtevd/YmF95DzPtu6fnMStD/M5MaYTWiOS5OlAZ7TqY GptaPifcLBCt3fc4iVQkKAnxyYDAZXGrIDx68mtkzea52eFUde7XR/UwuD4LQQ5rndUE aaEDg4Of/A/SqYJumqASUvH1SwzikQ8XQsm/o4BNaO5X2fNrDjIFyIGYCHdG5EoF9lKR KgW+BBxyT5aBtxDh3WweiFLudknKzc2/0gLZpZyxQyNpM/SACiXA0O31qKlOh6buzXyk B6gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=gmLivW0O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14si114907otn.118.2020.02.17.04.21.54; Mon, 17 Feb 2020 04:22:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=gmLivW0O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727909AbgBQLCW (ORCPT + 99 others); Mon, 17 Feb 2020 06:02:22 -0500 Received: from merlin.infradead.org ([205.233.59.134]:35996 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbgBQLCW (ORCPT ); Mon, 17 Feb 2020 06:02:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=N2KaWUW3ojsaIAWy3SDFA2ekcPzSJz1io3iUAiK0snA=; b=gmLivW0OFBNi55bZx67RzylSSS JWNzLtb2M3xL25Gkxs9hnoHV4znUSqr2RxWiIeSXqtdJHx72CjLeripuiKieBhZk/Ui6PJOdcNL0c 5/mmA9YIhidKIJezIIS+GUyRVqtrdZu91OmGcVN0gBvWqD0GDSLPUbSWJXEfT0+zTTlmo6aC+jJr5 Zs/tjrIUYq7GLwGxcXY+5yVzGnkE8RZCsdV2udFACanGo/VYRy+vDhwfx2XRvxT98vJa0qNuGq5HV wHzVsPUiVDmWuryfnmN5g5tSgzJ0SQzv7IW8hR1k3Pf5AAeJLYoFlt/+lDNJGz7/222bu/ZDt7ZSo rJmWaI+Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j3eA7-0001BX-8W; Mon, 17 Feb 2020 11:02:03 +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 AC75D300EBB; Mon, 17 Feb 2020 12:00:08 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1682A29E09C0A; Mon, 17 Feb 2020 12:02:00 +0100 (CET) Date: Mon, 17 Feb 2020 12:02:00 +0100 From: Peter Zijlstra To: Boqun Feng Cc: Alan Stern , linux-kernel@vger.kernel.org, Andrea Parri , Will Deacon , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , Jonathan Corbet , linux-arch@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [RFC 2/3] tools/memory-model: Add a litmus test for atomic_set() Message-ID: <20200217110200.GO14914@hirez.programming.kicks-ass.net> References: <20200214040132.91934-3-boqun.feng@gmail.com> <20200214235215.GB110915@debian-boqun.qqnc3lrjykvubdpftowmye0fmh.lx.internal.cloudapp.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200214235215.GB110915@debian-boqun.qqnc3lrjykvubdpftowmye0fmh.lx.internal.cloudapp.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 15, 2020 at 07:52:15AM +0800, Boqun Feng wrote: > I agree, and thanks for the suggestion! And I change the sentence in > atomic_t.txt with: > > A note for the implementation of atomic_set{}() is that it > cannot break the atomicity of the RMW ops. > > , since I think that part of the doc is more about the suggestion to > anyone who want to implement the atomic_set(). Peter, is that OK to you? Sure.