Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4909581img; Tue, 26 Mar 2019 20:46:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZSRLTUaDxS8xmajqDJmAjUBQiJ0XXwi6F1e0HZKv97O5PfUvRmf/+8gUE0hwZnbxnJxq6 X-Received: by 2002:a65:6489:: with SMTP id e9mr17057146pgv.364.1553658403657; Tue, 26 Mar 2019 20:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553658403; cv=none; d=google.com; s=arc-20160816; b=JiSS/D7G2mV0WqeBLtO/ZOs+6BpsVJEVM1lsu30tpBdb3wFaOgw5gzqpuDgNfTuKUP CvbBoyrkL4U+u55iMGq/M/rrx1gC1xysLU9BcaF+9gWJoE01qsx0F1wmWqLX4Z9KAnrf Gy8EAn57ZoYrgofF6ujpzTcBDBtzSq4VGD/hSXS4o8Ok2cR1Dx+pRtoLGZ/ITAjG3g89 aKovCTTX12rilK9jrLfVeEhbuAqmhxRyakN0MVaqnBdSneD1HnTr5SdyUybqdg7mTY0l GFcoc6+ndZqW02Fb40R9K1SDkQUcDkfBdpyBYLPh/PIen0KVLFIzSyKGXep3imhQQiaH dolw== 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; bh=txlNMxnibiTbLsittldSfO6JHk78Bft3XF94Wh9zM0g=; b=rkXL+zJh7+Uoo2pKuNllDgDDiFXVFOmRHLFi1mkYsalL55hJ5M8ofTAWp7zCIi/pHD zCN1IlWJALuVqBJddT1Ux06Lm402zm7shH2aLzV9H/tZ3aFrX9lmkmLZ8UvHY4H+RbNN sIMfuH0/bz0Oi0DfY/fgR9JqOSezb5s1r6GBcHsp1Sv26HtrXKRXw5qgXgOfMbbgFJmQ +NY7vDNvpQGzOyP5lK2zDBdujcum1XLMLbFnk0QUP3I8hp+h04MK/S0y97IyteZhejSc 64TzdJkzJnOBA51taRSFWJ1/QUCZCvxjP6N2d334PNslzMKS+KWFFZ45gzh2hI589lTO N66w== ARC-Authentication-Results: i=1; mx.google.com; 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 a15si2432360pgd.166.2019.03.26.20.46.28; Tue, 26 Mar 2019 20:46:43 -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; 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 S1732834AbfC0Dps (ORCPT + 99 others); Tue, 26 Mar 2019 23:45:48 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:40570 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727328AbfC0Dps (ORCPT ); Tue, 26 Mar 2019 23:45:48 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1h8zVY-0006La-4a; Wed, 27 Mar 2019 11:45:44 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1h8zVY-0003sl-0j; Wed, 27 Mar 2019 11:45:44 +0800 Date: Wed, 27 Mar 2019 11:45:44 +0800 From: Herbert Xu To: NeilBrown Cc: Thomas Graf , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Paul E. McKenney" Subject: Re: [PATCH 3/4] rhashtable: use bit_spin_locks to protect hash bucket. Message-ID: <20190327034543.aiskjamfllevxigg@gondor.apana.org.au> References: <155349021177.1111.15681654355431465791.stgit@noble.brown> <155349033961.1111.18247269615646768227.stgit@noble.brown> <20190326050320.gwk3tgtqwl5csivt@gondor.apana.org.au> <874l7p463d.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874l7p463d.fsf@notabene.neil.brown.name> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 27, 2019 at 09:35:18AM +1100, NeilBrown wrote: > > The bit_spin_unlock(), which I am avoiding as unnecessary, would have > provided release semantics. > i.e. any write by this CPU that happened before the releasing write > will be visible to other CPUs before (or when) they see the result of > the releasing write. > This is (as I understand it) exactly that rcu_assign_pointer() promises > - even before acquire semantics were added as Paul just reported. > > So yes, I am sure (surer now that I've walked through it carefully). Given that rcu_assign_pointer now does a store release it should indeed be safe. Thanks! -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt