Received: by 10.192.165.148 with SMTP id m20csp980285imm; Sat, 5 May 2018 02:12:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqJgYlGwPeVXjXMeH3k3ZT8g1Nb8qpgC1TkDKfohTamNx7kf4xHCaQOyGFg0h68O09GDYl1 X-Received: by 10.98.76.83 with SMTP id z80mr30102105pfa.181.1525511551239; Sat, 05 May 2018 02:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525511551; cv=none; d=google.com; s=arc-20160816; b=IPNIXy5U3or86GE1YakW84xydh1TLNiV20FEzwHjymQumTvaj4J3/tj36SJCfhqYV1 KRHmwa2ary4a3QPIbbo5SNl9wLvbSQEDjE96Xui5suvaZ9vZNtyC8QmyXQfYpKZ0elwP N0OKDlDAIVuQQ8Ugbsfpyu9Y5cQVFp63KKZ+5uOSz4XFZ0d+gHAfU5dY0BJdFGC9FPG0 lWI3KYaPRR+hItuKQ2IK0avAbFtxWNVhCfysSnl4t0wHeGGEy+BCNnFUwQY1iMrsOpPa vSVVZoyDdwZs9hjn6ImkqHJ8UK6y8Vz1fOJmGFJMCN38fDKyHd5gFydDfnFZD3RPHJ4a XzZg== 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:arc-authentication-results; bh=4khkW2ZDhT7d121v8801sYwisIUHZroz1sS1HApQLlY=; b=QSjhirYbIYE2Bvjs+iQU//fb7V9x1E700ihYGieZljCCirASh5P/FiwOKBZdgQVGo4 8lW1gKBbU7sPA2/HV0GFSKVbGe1PWXrHzKQhBDIIiae7MAK8lKx+LqJJkUOq+4AeONCI 95BoneZfowETLcI+mNnKr//gX1f2wRDRAdwNEoFeZ4JIzkF6BX5j2SPd8u8HmPf+h4JQ gDBwM7lx93qBWg1zxAcCOQqy4j4NJOUPvh9DBYTDVXXbY6+oX8Nr8lQ0mlpvIp4h/75I GefLyhSwNWJr2GOB2O8bhpUx733LUBgJ9pntr4jWvOlgiWobxSvfp2W425t7J9Lr3w36 PpvA== 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 m11-v6si9270009pls.497.2018.05.05.02.12.15; Sat, 05 May 2018 02:12:31 -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 S1751337AbeEEJK6 (ORCPT + 99 others); Sat, 5 May 2018 05:10:58 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:35358 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750764AbeEEJK5 (ORCPT ); Sat, 5 May 2018 05:10:57 -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 1fEtDQ-0001by-3x; Sat, 05 May 2018 17:10:52 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1fEtDK-0005yN-Vl; Sat, 05 May 2018 17:10:47 +0800 Date: Sat, 5 May 2018 17:10:46 +0800 From: Herbert Xu To: NeilBrown Cc: Thomas Graf , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/8] rhashtable: silence RCU warning in rhashtable_test. Message-ID: <20180505091046.bd74tk75oieaasi5@gondor.apana.org.au> References: <152540595840.18473.11298241115621799037.stgit@noble> <152540605424.18473.310003836978239224.stgit@noble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152540605424.18473.310003836978239224.stgit@noble> 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 Fri, May 04, 2018 at 01:54:14PM +1000, NeilBrown wrote: > print_ht in rhashtable_test calls rht_dereference() with neither > RCU protection or the mutex. This triggers an RCU warning. > So take the mutex to silence the warning. > > Signed-off-by: NeilBrown I don't think the mutex is actually needed but since we don't have rht_dereference_raw and this is just test code: Acked-by: Herbert Xu -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt