Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7624884imm; Thu, 28 Jun 2018 06:53:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIm/0bUp9A3o3IZZhnYHMydKVMwYyQ5V1rEsqdduCmmqbLQsqDaOOMMvtrg8vDo9UkJWSLS X-Received: by 2002:a63:2404:: with SMTP id k4-v6mr8917159pgk.191.1530194027026; Thu, 28 Jun 2018 06:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530194026; cv=none; d=google.com; s=arc-20160816; b=FAp1i91aLgobqCX0DE5WCBZKg3grHWGFRY9RGALkt06+1odoXIoMJ/F8R7ULoTXfJU yCaXkjy3BMaZ1xlJ2g7P2yfHRjeGyoIED8pHmtYijzEzckxmDtjVoKrJ87UN+1dBiiwU qZvLy4/jkSAOghL0IQ5vnuqPgRjRIHav9g9LlOQKga6JD1wWuY5IbxtqCFY530I4ffJi a2hx/jBvLijdADJ4bU/a4El/tuzTB8eCcwqxnnE8F33rbcjZNDLjkNi98x/JaG+1P8be CoXr5eA9SalQ6VSsgD90DFE/KZ926DFIWd7NzrZBB/FSi/lnOR0UAxDhPz5Bg2bUNb12 3QyA== 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=9IsqMTmPfoOWC8YQ7OF+QZpnRr3INUW4vs303iXWhuk=; b=TAcoWEUvpfdqdzNiIJQeD/68Bc3921SiYI6PKUtTa489QcisCBt1hN0Ddv9rYKhCKp e3g+dV1lXvL7o0AaHD9OCfcnwGR+PPNvPdiYoC7QBnRd/7zP8LtD437gfKTkGs6kmif9 PFEOAHEOam29Tva0o7KcqOeRERtNxr+b5QuYm8nCJslSodd9woxVUZrCjtTT1Nb8ss6N rm1PMIEo7ToDXdCnWsMMtXR6UdS4CiBG4AJsgKCmVGrxklvgnAZbmG8m28oM9VqYlv2N 23E2ShFbiclkycbikXp/LVZ+01MmF5x8t7CYGjuigh0ws443U2yxwk72cyB2ljsdtvtD VS5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nUQMLk04; 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 v1-v6si5760589pgf.515.2018.06.28.06.53.32; Thu, 28 Jun 2018 06:53:46 -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=nUQMLk04; 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 S966320AbeF1NwQ (ORCPT + 99 others); Thu, 28 Jun 2018 09:52:16 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:39579 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965989AbeF1NwP (ORCPT ); Thu, 28 Jun 2018 09:52:15 -0400 Received: by mail-wm0-f43.google.com with SMTP id p11-v6so9111658wmc.4 for ; Thu, 28 Jun 2018 06:52:14 -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=9IsqMTmPfoOWC8YQ7OF+QZpnRr3INUW4vs303iXWhuk=; b=nUQMLk04i6l1kDurgFefITkbCqPFDDmXrWym2B8HVKjkc11CpCbTlW+YpyY909I50R fSsT2eGm3QlCBw6MWT3MGHg//88/8OzudickrgP3rUzVUCsT9UDWrE3MIQmOb5XqPiCy u/obY/1UT0ZAeCG16FsaSzgUFKqbyF3RIMGXM= 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=9IsqMTmPfoOWC8YQ7OF+QZpnRr3INUW4vs303iXWhuk=; b=eCijVnl9Qy/Wsz8UNQl7Ebdprgvjski6/NDlw0Sf5ytOlvbUF0ei+suiKo5MdV+knl S6e1fr/T8YfGq4W9ocyAoOuj3wpKzZjaauekeBQOPhyMm95Qzq0DTLENusJmomx01lgj RMEArI/8kP5vQDnrdbGar8zfyz83HwrH0aTExWm5jzkXBGHa0UF5FX9Emaqz3gDnzL1c hKKdVAglNDJF15a7ju8lgdrXqqQzyvB8/7rlrgI0/KlmKizULtdMJA8P5HtZ6WTHReqs ImSKeWwQJMA9lLyo5YFizz2Xc5GDa1YLuQshYuNbsklIZezs+fMunl7uxPRUoBr/odH5 CwaA== X-Gm-Message-State: APt69E2Dy2OKBNGN4eCE23vKfX5QyApEq4D7Mzng+hirT1E/3E9Wx3Pr 1IDvDg4ufNVwYdlrG8UcsG38xA== X-Received: by 2002:a1c:9788:: with SMTP id z130-v6mr8695704wmd.88.1530193933833; Thu, 28 Jun 2018 06:52:13 -0700 (PDT) Received: from andrea (85.100.broadband17.iol.cz. [109.80.100.85]) by smtp.gmail.com with ESMTPSA id s3-v6sm7964962wrp.76.2018.06.28.06.52.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 06:52:13 -0700 (PDT) Date: Thu, 28 Jun 2018 15:52:06 +0200 From: Andrea Parri To: Alan Stern Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E . McKenney" , Akira Yokosawa , Daniel Lustig , Jonathan Corbet , Randy Dunlap Subject: Re: [PATCH 2/3] locking: Clarify requirements for smp_mb__after_spinlock() Message-ID: <20180628135206.GA16107@andrea> References: <1530182480-13205-3-git-send-email-andrea.parri@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 > > + * smp_mb__after_spinlock() provides a full memory barrier between po-earlier > > + * lock acquisitions and po-later memory accesses. > > How about saying "provides the equivalent of a full memory barrier"? > > The point being that smp_mb__after_spinlock doesn't have to provide an > actual barrier; it just has to ensure the behavior is the same as if a > full barrier were present. Agreed; will fix in the next version. Thanks, Andrea > > Alan >