Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp464927ybk; Wed, 13 May 2020 04:56:42 -0700 (PDT) X-Google-Smtp-Source: APiQypIsCpyFjZdkTzQWFcv2jH314PWAxnOeXDlF7NGfwYREL/PiPrIRlt0sL0XWT6TqPdgl2NXB X-Received: by 2002:a17:906:7717:: with SMTP id q23mr22052062ejm.38.1589371002409; Wed, 13 May 2020 04:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589371002; cv=none; d=google.com; s=arc-20160816; b=Boa2uhDLeBniHxEK/4oN2itLiGIrJygJH8+sOi4q2PvQalttnhaExqTAU/L/KRn9jM mQWvxy2bS9GxQT3ZmQmuOS+AsOYT6s92qrTwun29zRbkBX7H8x/kE7bAE2DPRsSv7yMH e+Z8EvtF6a7RMG3D2e4edcSe90elKdhokwceXIcIpKGjVyCv/KLh3Bh+cnKNFQJ6c41L DfVrfqZ8xI3yAmLWkzHKDCNLQR0dk4Pp7T6rUvW+rbCZie9hSdiJ79QdnHChZ211c2Tz WPlRO84cPFgq1hpbxryb/oO+Ey7zi0fhntLn2enFtIsX81CXVRKIhmPc3O085cqj0t3s 5WMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=EcOhpNzmqj76pr7LvtjppgjaOtM4Ls3PwBzmfZaGxKI=; b=zHo4MKPpiqeKFF90HlvZbj7TkThgk80ESwUYxsPdDRMuC3lcVaXXjkhJo7Kq9XGzEO cI/sBQOxf+oVqJfRhlBYLG+cM/MlyLTdqFAtSMms3LZ2cPmA2JFFHM5UETmcnHooyo+j Sp3m0QO69tXsmiYaa1b9PUv8gDR1b7R4AxKQLvqh5s78cdbvAM8xQWrH8MqtJktwh9ci 70TJx0N+REDZBfgENyo0GBpnnsC4aKzu9L/MCvy3o45/6MiesQzNwfVhovF/2/3CBy58 DBx59MTirokQfICkfNXpRX0J7cNdSKpurpe6/yv5KNgLa7ThmDvFxyj5h6kU0Gpgzkhq vsig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b="LqN/gv1i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si5798982edj.455.2020.05.13.04.56.19; Wed, 13 May 2020 04:56:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b="LqN/gv1i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731196AbgEMLyq (ORCPT + 99 others); Wed, 13 May 2020 07:54:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729758AbgEMLyp (ORCPT ); Wed, 13 May 2020 07:54:45 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84DA3C061A0C; Wed, 13 May 2020 04:54:45 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49MY4f6q8Lz9sRK; Wed, 13 May 2020 21:54:42 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1589370883; bh=3T+lgSc67nG88CAar7Vf0TDXY5ZfpVC7nYvqytN5sYA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LqN/gv1iTibO8JXPWWbV654vC1YJxhEggzfdp2qCrZDNYOAJtzYt7KNVpoF2kfkQk R+US6MXwoHV3rGvLzFEWu32dX7LulBk4Pom52Z3zB08weVDLQFSFVIyXgOIGyzgfp8 wQv5o0joI2vSF3Pu4MjOoRBsvDXe8Ty6eXd2hgfAIrDZNN5ut1fnK+oz6Q42TlOGdR trwrkaqHVXtfQxDkP0610r5+WUmUQiCrETUtpTygZKm5bRGAcvCjpBZvZl+CNES3US D3QaxWNUyznpKkowMqAQIK1xGddb2aGSObbGAHeTsbibwPSkk7u9aXlaf6DKOW+od+ HX+tZgm5g2Hew== Date: Wed, 13 May 2020 21:54:41 +1000 From: Stephen Rothwell To: Madhuparna Bhowmik Cc: kuba@kernel.org, Amol Grover , "David S . Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Joel Fernandes , "Paul E . McKenney" Subject: Re: [PATCH net 2/2 RESEND] ipmr: Add lockdep expression to ipmr_for_each_table macro Message-ID: <20200513215441.22653800@canb.auug.org.au> In-Reply-To: <20200512051705.GB9585@madhuparna-HP-Notebook> References: <20200509072243.3141-1-frextrite@gmail.com> <20200509072243.3141-2-frextrite@gmail.com> <20200509141938.028fa959@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200512051705.GB9585@madhuparna-HP-Notebook> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/G21wR.Rlh9nJMI_uLF+zR.9"; protocol="application/pgp-signature"; micalg=pgp-sha256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/G21wR.Rlh9nJMI_uLF+zR.9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Tue, 12 May 2020 10:47:05 +0530 Madhuparna Bhowmik wrote: > >=20 > > I think what is happening is this: > >=20 > > ipmr_net_init() -> ipmr_rules_init() -> ipmr_new_table() > >=20 > > ipmr_new_table() returns an existing table if there is one, but > > obviously none can exist at init. So a better fix would be: > >=20 > > #define ipmr_for_each_table(mrt, net) \ > > list_for_each_entry_rcu(mrt, &net->ipv4.mr_tables, list, \ > > lockdep_rtnl_is_held() || \ > > list_empty(&net->ipv4.mr_tables)) > > =20 > (adding Stephen) I have changed the patch in my fixes tree to this. --=20 Cheers, Stephen Rothwell --Sig_/G21wR.Rlh9nJMI_uLF+zR.9 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl674AIACgkQAVBC80lX 0GwJeQf/WMFPCJ/Bcct2RJ78Xar0HrrX2pKIBOUdfYIYHWltb4+jgrHS4s9JUDAr qwpk4IVWSTS/mCCdW3A+GU7wXNfCW5hJtMVprpwJpulGvsTWeHHSFePPESje0uvS OQn8YwYk5a5Qxm6xPgbcmJqLW3b3ud4O+rA4t6EegtDIDMeaI5TUg6xJFpfl42KD AD3w6ukWA0O5iQulxiqTBOTXBCR1QN4plkafmfgYXXaUQfWLMGmLHJRs6OU/f4uJ QTtQlUiNa4yiiyYw6CfDsG5xs7NFjhOKmPydw8LdpzB8WYVBQGTp2kK/1emWUv1f gwDrocR3dPMr8mGcsTF3GdoRFCtc/w== =QuXY -----END PGP SIGNATURE----- --Sig_/G21wR.Rlh9nJMI_uLF+zR.9--