Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1767739imm; Tue, 10 Jul 2018 07:36:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeaaSITCQucRHqCAqLRwmmBoSo7yDYI1zKAm3wsD12duwJFgeftj5BofrgyQxgI/3Q9K31t X-Received: by 2002:a17:902:7b94:: with SMTP id w20-v6mr24950350pll.280.1531233367894; Tue, 10 Jul 2018 07:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531233367; cv=none; d=google.com; s=arc-20160816; b=DlcPqZDb5QkgpHRCBIUGQjGkD8KdCp8pY0x4dQA7Q3A8U/Mw+sSgubIYR2PQ4o8U2u 90dYcizbdcRHYhoqv5K7Epp05hNa46mXMHu/EnHwjwVDX8ncPXBM+li23sTUCSn62/3b OqTFRTp7l606iwQj41L3PyGc4ad6yOhWj/LBiZGbBIoXaAAJmjRSErk2GFje4EFZjZKY tqu1X1O5f76sljglJW6zM1ICEGzs+0t7KLmthmju0BvPtjY4vIChvKF87YHMSbgEb0Qx 4Y9T0m3tRDz1OQvgAcngAmJGUWdkscwcu3QIQ5GwlwrDmRYb3Lpy/4LSbnw/i0kjMDOz MsjQ== 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=DrkARnj1Y5uzN7GxT/J+PMXh7Sow81EEX/wPymjML4I=; b=i/2hQQntqkjKGyJxaej5aMyO4+qbyBV/98aGSktNDo13Rkpx/59wgfdzaWXtTUwyiu eSorateFZlbaaqxIlzdqWHtXPGHOX1B7xNLgopl7LLGN93TENXWnR4dBYVlDEkOwILN9 Tfv4xCALul9zazDiyeXHQYFc0lI33kdYOLtSfIyhGl9A8bWCpV2VZQ5dllIti1J+NOAK pLFqtDaVnuP5FfQxn9V4myQVFelZcV88FgnsRVaQrkoRX+Bwt9dxipDgNsy69J6gk8Sg SthG3XqgMXCeqavkKF1wM0yw8UFXsyHcpD3RlGVuBg4IuTPDqT6LBSxgEXTiwVoj7YNg 7E2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ClgJMNt5; 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 n7-v6si16348579pgm.612.2018.07.10.07.35.52; Tue, 10 Jul 2018 07:36:07 -0700 (PDT) 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=pass header.i=@amarulasolutions.com header.s=google header.b=ClgJMNt5; 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 S933792AbeGJOfK (ORCPT + 99 others); Tue, 10 Jul 2018 10:35:10 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45536 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933449AbeGJOfI (ORCPT ); Tue, 10 Jul 2018 10:35:08 -0400 Received: by mail-wr1-f65.google.com with SMTP id c4-v6so2200768wrs.12 for ; Tue, 10 Jul 2018 07:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DrkARnj1Y5uzN7GxT/J+PMXh7Sow81EEX/wPymjML4I=; b=ClgJMNt5dq9bMsxxmSlxRahH8dq6+spehLIzkkAUi9AksjualIw7CPuloJOteswrzA oEzcWakQYVAILwCs2g2cGJY9pEwBebSkMZ16ym5Is5T1LvSGb30Dw7q8ym5Ufv6pMRKx eOd+zdwVn7sx3bj1em2olBpAu+VMWocBWH170= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DrkARnj1Y5uzN7GxT/J+PMXh7Sow81EEX/wPymjML4I=; b=l9HIDd83vr0nvdjvwTJa/C1ZzNaGTZ2YDNjPzZELTGxJEaMXVTrvq4yYaQygKgEjUh Dqmbi6PIPnSpivjQGNs8uODUTJLWX9y/feYg1RiP3VJ7veWE0Lnr3R3bZozW1XELo1ub u9ta7bVaKPuU0HkMN3TLSyD/pZaBorrRDp9KtWjnhWnjN2Ke80559wmH7oIgrY3jo9xH 9C6Qs1W1XadK42Tdf6GmDS+8KUd8b462I29J6JYXA3PYT1bXWLJZXRaKKBxso8tuV74F ZzmyLnjkk77Nd1N/uqHYAb+uYfB4Osayif4ST7F81SlGUfVg1W1KwCRHQSkGYTvQ8Pb+ jlEw== X-Gm-Message-State: APt69E2aCniCBf9e9yVNgJbUsowDEI7Ql8/XUa4SawHaEoMd+ej2CBns uCQmJDEuxgnBjPZ6iqJMoxGjMCpU X-Received: by 2002:adf:a86a:: with SMTP id l97-v6mr18581763wrc.164.1531233307334; Tue, 10 Jul 2018 07:35:07 -0700 (PDT) Received: from andrea (85.100.broadband17.iol.cz. [109.80.100.85]) by smtp.gmail.com with ESMTPSA id i190-v6sm25640741wmd.33.2018.07.10.07.35.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jul 2018 07:35:06 -0700 (PDT) Date: Tue, 10 Jul 2018 16:34:59 +0200 From: Andrea Parri To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org Cc: Alan Stern , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , Jonathan Corbet Subject: Re: [PATCH] doc: Replace smp_cond_acquire() with smp_cond_load_acquire() Message-ID: <20180710143459.GA10527@andrea> References: <1531216943-6382-1-git-send-email-andrea.parri@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1531216943-6382-1-git-send-email-andrea.parri@amarulasolutions.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 10, 2018 at 12:02:23PM +0200, Andrea Parri wrote: > Amend commit 1f03e8d2919270 ("locking/barriers: Replace smp_cond_acquire() > with smp_cond_load_acquire()") by updating the documentation accordingly. > > Signed-off-by: Andrea Parri > Cc: Alan Stern > Cc: Will Deacon > Cc: Peter Zijlstra > Cc: Boqun Feng > Cc: Nicholas Piggin > Cc: David Howells > Cc: Jade Alglave > Cc: Luc Maranget > Cc: "Paul E. McKenney" > Cc: Akira Yokosawa > Cc: Daniel Lustig > Cc: Jonathan Corbet > --- > Documentation/memory-barriers.txt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt > index 0d8d7ef131e9a..987a4e6cc0cd8 100644 > --- a/Documentation/memory-barriers.txt > +++ b/Documentation/memory-barriers.txt > @@ -471,8 +471,8 @@ And a couple of implicit varieties: > operations after the ACQUIRE operation will appear to happen after the > ACQUIRE operation with respect to the other components of the system. > ACQUIRE operations include LOCK operations and both smp_load_acquire() > - and smp_cond_acquire() operations. The later builds the necessary ACQUIRE > - semantics from relying on a control dependency and smp_rmb(). > + and smp_cond_load_acquire() operations. The later builds the necessary > + ACQUIRE semantics from relying on a control dependency and smp_rmb(). Still not completely accurate: smp_rmb() would better be replaced by smp_acquire__after_ctrl_dep() (arm64 excluded). Mmh... I think I'll just remove that "The latter builds the [...]" and resend; thoughts? Andrea > > Memory operations that occur before an ACQUIRE operation may appear to > happen after it completes. > -- > 2.7.4 >