From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on archive.lwn.net X-Spam-Level: X-Spam-Status: No, score=-5.6 required=5.0 tests=DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by archive.lwn.net (Postfix) with ESMTP id B2C677D048 for ; Tue, 10 Jul 2018 14:35:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933599AbeGJOfJ (ORCPT ); Tue, 10 Jul 2018 10:35:09 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46249 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933283AbeGJOfI (ORCPT ); Tue, 10 Jul 2018 10:35:08 -0400 Received: by mail-wr1-f65.google.com with SMTP id s11-v6so14869892wra.13 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=E6kfp6cTHdx6p+XZpbgNR+Y8q3DQ7z+8IXwah6lTOIJ6/0FJD+Zenb+PlfLx/qcNll TrRArXVtKS+8NpLsZ8TtI/d2rpzSHEilsM8d+J8Q+pMCA3UgH3RBN96KiSOJjnz3bJSe eKITFPbbEeivIt1igiZydJkuhFU6QvhyPRH/fLnHwbM4S1+s0ptI9fTcYfLRZZ/iMM1a 2afVOEHDQ4GB2TFlAAABvOHQqH0kfyOeE78Dbs755IiCCjZcCe+Z63i2ZGBVJ/587c4e 0AV/3ay3r0ssli/wKfUIhb+jPw1XczKTLtyj71UcT6ETPJ4uIoYSjX44VO7qgCTETiYH bfnw== X-Gm-Message-State: APt69E0bsJIWs+YtzWgYQ2OJ1CEIgU2QBKXoyHz0E2RPTHLUSuYedfio m7c+kh0CAMiJKspAxJ+Qob1npQ== X-Google-Smtp-Source: AAOMgpfCjmnLE/IgoCphxyhC5IEojMLtlZlIGNcIN7KVYGsoHMYRINN6gLrO97US/YfJpgCpWM1kiA== 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-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@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 > -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html