Received: by 10.192.165.148 with SMTP id m20csp1534980imm; Sat, 5 May 2018 14:50:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoieEce0TCJSGS6Yaxq3agd4aVIECz7W7h1QmOFyOiQvoOpTC5Ra52RKL1oL7TZ4xsB5WG/ X-Received: by 2002:a17:902:822:: with SMTP id 31-v6mr33179458plk.172.1525557017366; Sat, 05 May 2018 14:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525557017; cv=none; d=google.com; s=arc-20160816; b=B446kCUjXDHwPnkUZW0nQN7Le9Y0r+T4gdsU/jEBb/busKiKVnf8Wioq74wGKXln49 EX0gPhlzpPplR2zU+SbtHEpJL+izPUFA7X0KGy09In2oEULAjkq2LbaTi5lAsZpBd6VR 24kg4MeEGqPndM18pyWv3RKHvHtbJiNu/W8mTYAPjc3vnqsaOIZ/8zEfjuhBLsUCLMxo 2jnZMXks5v8GK9Qvuu5m7M1z0hU/peJbcoXT6rMwD80TSxYKwFUfTig23AABo6ShzxL7 N+b9uKX8aMrCFfuJAoygW8C2vxlBkGBVkJa4/iHjAfdnDLbRgIPzrhvkNd9ri0ttVb7w CKEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from:arc-authentication-results; bh=vZ0+40uFmW79lo1jix6n16LsTxD2jDn1TtZ8n04By6c=; b=b7HpcDRf5JMUe8j0ywj/TKHoD3jSKT1cgO+68qusJqBSf8FPd4iicPS2d7xXbtLlVw Yb3G004q6l7Q7EE/hDrpC54IhX6T/pQLz2CKM6Mc4SBsQ6Znb8Cc6WZWFej242ZyDHui OXrXZlqHzCfADW8oJE05eUwGX4iikNEwe1Le88FIS5uWBMYT/P0kCQFXdTCuahUwkXrF pZpo2eJooqUvuZ8a8NlQHWMwgl2XNDSJeCTf/iXvIrvVELqsdPSkA1BiAOQEQrqQzF5Q Kgx0X0Von2vFgX2UdIcVbovcvSl1uh3BjI9vz2rXAjhNlP8nxoui4kzvbU0o0iHgE2q1 Cqqg== 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 3-v6si18779242plv.323.2018.05.05.14.50.02; Sat, 05 May 2018 14:50:17 -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 S1751923AbeEEVtv (ORCPT + 99 others); Sat, 5 May 2018 17:49:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:47144 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750830AbeEEVts (ORCPT ); Sat, 5 May 2018 17:49:48 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 515E6AF5D; Sat, 5 May 2018 21:49:47 +0000 (UTC) From: NeilBrown To: Herbert Xu Date: Sun, 06 May 2018 07:49:40 +1000 Cc: Thomas Graf , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/8] rhashtable: silence RCU warning in rhashtable_test. In-Reply-To: <20180505091046.bd74tk75oieaasi5@gondor.apana.org.au> References: <152540595840.18473.11298241115621799037.stgit@noble> <152540605424.18473.310003836978239224.stgit@noble> <20180505091046.bd74tk75oieaasi5@gondor.apana.org.au> Message-ID: <87y3gxdb7v.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, May 05 2018, Herbert Xu wrote: > 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. >>=20 >> 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: I agrees there is no functional need for the mutex. It just needed to silence the warning, so that other warnings are easier to see. > > Acked-by: Herbert Xu thanks, NeilBrown > --=20 > Email: Herbert Xu > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlruJvQACgkQOeye3VZi gblIihAAjUaeZNump5z/C4Mlt44suqZrthqo7fcC9CpZoC6O+e2+lq3Pu07KaXxs YEfJCNQohKb+oYQp4AkaCloRhrbvVpMR1AoUrB6dt/7ZcQo1T0yrw/WvrJdhvflh UmQ96dKH8xXwBLVh25g35VwO3yI4xfm/JkvLmj4Hz6JRY0cUCflVl5hwhZWB9Dxp PjM91omUc3GOFwsdi+9N2JG3K2lYZyGxhixFDh/QTtheVFTOSThQccmykE7z4V9V v7JWD/dBxfabgWnQEsI5BDff2cSeauRrf/pQYGkDxfDfCAP4zxpxMfTgQ0myEL7/ ZAw09wMAZC4yJbXdWRhC7tJZn6hoKtwPvTD2izsmytHSFTULtJVIiq/9OfPJjXiy JlDZ3H/IF7x15dt+oin/aSqtxEUAOXnyJSN1V1LCuFs1HuF4RF1mBM2ch6eAwJgq tuz9O736X1PokaTUM7WOON+qZHsgGxrMSyD2rnr8so1p4cf/78M9Ju9f+O442EOJ WVLl0CfTbV52pyjIOCAMGgMfzJ7Gq0Lpq6V9vE/5+MRZPY3NgB0lEANh0dLJCU2A KAgzkYPXkJUwPs7VhAuGLJb3H9+bzTtnNhfJEIGc1rZQLKsTqBpD9CotQlc0MLiM JS6u/nHt+HrOtlVmqnzPhGbPMwn8v9qhe5sPH5u2vfEDhXM97zQ= =wmBu -----END PGP SIGNATURE----- --=-=-=--