Received: by 10.223.185.116 with SMTP id b49csp612053wrg; Tue, 20 Feb 2018 05:04:39 -0800 (PST) X-Google-Smtp-Source: AH8x226rdYVziIUbul+vS3LwWvEaaE+1dLHNlE7Ha+bP2DoA1xcTqoqzWfm3JoNPFPP4rHyACcUg X-Received: by 10.101.77.134 with SMTP id p6mr14801374pgq.230.1519131879623; Tue, 20 Feb 2018 05:04:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519131879; cv=none; d=google.com; s=arc-20160816; b=NU9nnjiotYUiJ7PKTu2oFI9aeWMSKn/gNYWMqz+Ze6fiSV3L5zJ91l9frf2qUxqw9y 2AA5RZVqOBaVsiq6o+QkXVRknuau67Egp6c9LzOmgCcEhaUBKi5zXyPyEKNyPF7dHF1W /CoTka1LvDby7AbQryRIdq9q5lJ3EfxCnq80LfjesfpowO+maYW9ImCdg4VHRNxX9/Fy 7KMzVnxq7SRbrGjt4GgQFnPbFm3yZSJ0O/BOYCRH7fG4nKnRJQV5e2Tbiwo9W7/8Lbnl Gy+AoGlAvfy4EZ42ELDMiFHptc/1L05dNaCyQoiQnQiMoV0G3oCB6ewf1wEWzr5bgf+s BveQ== 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:arc-authentication-results; bh=FMpHEqGC31ycbGtkkhDQQuWPQ2t3vaCfUuQpkdkc7JA=; b=z9UTrc3mTnPFHCBHSAVUyqDaOBQRhX0nO3ayLFL68h1rxGLCALc+u/562OomgyGh/a 9ebmsn+8fhVZvT73BBfdxAzsoa9e4fcyy1FaoJ0ua4GyVHsJ8ZFmRLJxHjsr4b5WquVT zWExMOFHc4FPyF/CilKR4U8DY5mORahE5Ugoca8eJOQxBaRO4dAXGDs9lZs4SLMTe7sk IHTZ7/JboPG9rWWqMzqwO5PnRK0Q+HxpQBK8j82yy3JoE/RFcLnQ5YkXZtqiAZ3u9F1N ilyNOKPUMzD4sk6xdV09JFdT8KxW8oKDM1Owz+y9lZ5Fg3ImdfwJr2uxmiEWTMuDGeSm h40w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=LtJdlf4v; 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 t18si5568393pfg.246.2018.02.20.05.04.09; Tue, 20 Feb 2018 05:04:39 -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=bombadil.20170209 header.b=LtJdlf4v; 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 S1752217AbeBTNCW (ORCPT + 99 others); Tue, 20 Feb 2018 08:02:22 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:46878 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752178AbeBTNCQ (ORCPT ); Tue, 20 Feb 2018 08:02:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FMpHEqGC31ycbGtkkhDQQuWPQ2t3vaCfUuQpkdkc7JA=; b=LtJdlf4vz8uElhct5H3bfAh5Y X3lw7NlqRPGuoxFO+jWh4Sn8Ggxdl0VebjkpHXxcXDschEiQnBaA/1eP8Yk/Bd0MXs9zyfvgxc71H EOdB4g6UZ8xfg9gg2dsWtJrmSCaugRL9b9DVaOfcM3fsvoCtpnfInYdsAMf66alEPga8t0herMpx1 bTyKE6H8noPGcxllvS0vFovqp5Dsp/m1RjOizzj08ipqqiIRB70fdZKQnO4GBXoXISbmj5LXSppMQ SZLz3+G+//qw5MWu7Pxmmigi+pViV15jqWbbGbb28Uxy23VwFNqoH4aZIavFkI7TXOHubdDns8pvr j4mnVQuZg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1eo7YT-0005wG-C1; Tue, 20 Feb 2018 13:01:57 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E46052038D44E; Tue, 20 Feb 2018 14:01:53 +0100 (CET) Date: Mon, 19 Feb 2018 18:44:13 +0100 From: Peter Zijlstra To: Alan Stern Cc: Andrea Parri , "Paul E. McKenney" , Akira Yokosawa , Kernel development list , mingo@kernel.org, Will Deacon , boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, Jade Alglave , Luc Maranget , Patrick Bellasi Subject: Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference Message-ID: <20180219174413.GV25201@hirez.programming.kicks-ass.net> References: <20180217151413.GA3785@andrea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 19, 2018 at 12:14:45PM -0500, Alan Stern wrote: > Note that operations like atomic_add_unless() already include memory > barriers. It is valid for atomic_add_unless() to not imply any barriers when the addition doesn't happen.