Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3892206ybv; Sun, 16 Feb 2020 08:18:06 -0800 (PST) X-Google-Smtp-Source: APXvYqznu7xFJrILpnwiUVOXzEExXMVCZ7sdB4msUGVk/QIEobgDHlnIsIA/OYd4YHPToxOBJlBM X-Received: by 2002:a05:6830:1149:: with SMTP id x9mr9564907otq.156.1581869886460; Sun, 16 Feb 2020 08:18:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581869886; cv=none; d=google.com; s=arc-20160816; b=trT+T/N+x7NpW0NL4HJuEt//8iqhxnNgB8qwXoandsXGwmTY8tZyaWojkpG1t9+D8i /9uEpYXVV0bxeJyV31XH3mQCewrepffGEHYfGuHxo554GMGEROi2/cnVqR4huvUFKcln 78i82G6bMcQP+fU9exeurmNbWd7PnD40e4dA4wBADjAt5y2Onywfk72RVDWSURxL3VJ4 cmVLzvXHNAvHhxCBvc8oTfH45QCM1suYglTYgIwhQSWB4t4VDn0jC6gV/pldYhp/fHxP RpTeLhcrvTBCyThD+5UEqF0NDNZNtN61m1E8nimztERJL5JFnfvSlxZv4+0nfI8peJJk Zdzw== 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:date:subject:cc:to:from:dkim-signature; bh=ycDGsIuRvIAvHC8M9jSWoOHJ+C/adZPAoQJAg4MOHh0=; b=Vlnaq9HYEGzifk0EkWs8fzDvTdvgrtCetv4Pwd2wN/hhx82qlHOU0Sl+ghguiYk4YZ w6qwCPP3jNlkSemwNDJbdgj9Qt1fh7rk96D1sA7o5t9z45RpnzcpjtwDghM+50ndmfqc 0A5yQ9THg/x6OX/halHqmA8FYqVoFV29M3fuXGjLkf49koJxXvUNm722/bkGN1SVdQsu mBoDGNnnr+Ff/tdhoRNhHLWStsFbUiRUeEuvji5XY+pkzn9QShygp4jMLzLu0shn5m9m utQATw8UxTxybo51yEKJi87u5h+jEBJ9yFWn0GqOIQ+T1Bo7GkjaST8pGpmGwV5cIpkc YMXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b=zMk1rHpH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=narfation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si6649736otg.128.2020.02.16.08.17.53; Sun, 16 Feb 2020 08:18:06 -0800 (PST) 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=@narfation.org header.s=20121 header.b=zMk1rHpH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=narfation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728457AbgBPQRp (ORCPT + 99 others); Sun, 16 Feb 2020 11:17:45 -0500 Received: from dvalin.narfation.org ([213.160.73.56]:59426 "EHLO dvalin.narfation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728239AbgBPQRp (ORCPT ); Sun, 16 Feb 2020 11:17:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1581869862; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ycDGsIuRvIAvHC8M9jSWoOHJ+C/adZPAoQJAg4MOHh0=; b=zMk1rHpHJsElWdVbsSg4ZDZMx5E98D/6dpZl5fZ7/wTxbWc59OHrFcAPUL4dFRogbZ6BVR a2bf3WJenvnoXSI5J9ZK/6Ud5A8BUs7+CfYLzru/8x4teDCFj3+iU4/214121/5rIFYCMC 8hsv797rAa9Y+pWYK8gV6jiuYAOJuZ8= From: Sven Eckelmann To: Madhuparna Bhowmik Cc: mareklindner@neomailbox.ch, sw@simonwunderlich.de, a@unstable.cc, davem@davemloft.net, b.a.t.m.a.n@lists.open-mesh.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, joel@joelfernandes.org, frextrite@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH] net: batman-adv: Use built-in RCU list checking Date: Sun, 16 Feb 2020 17:17:36 +0100 Message-ID: <14125758.fD4hS3u3Vl@sven-edge> In-Reply-To: <20200216155243.GB4542@madhuparna-HP-Notebook> References: <20200216144718.2841-1-madhuparnabhowmik10@gmail.com> <1634394.jP7ydfi60B@sven-edge> <20200216155243.GB4542@madhuparna-HP-Notebook> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2027361.KDeqtIc2Nz"; micalg="pgp-sha512"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart2027361.KDeqtIc2Nz Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Sunday, 16 February 2020 16:52:44 CET Madhuparna Bhowmik wrote: [...] > > I understand this part. I was asking how you've identified them. Did you use > > any tool for that? coccinelle, sparse, ... > > Not really, I did it manually by inspecting each occurence. In that case, I don't understand why you didn't convert the occurrences from hlist_for_each_entry_rcu to hlist_for_each_entry [1]. Because a manual inspection should have noticed that there will always be the lock around these ones. KInd regards, Sven [1] https://www.kernel.org/doc/html/v5.6-rc1/RCU/whatisRCU.html#analogy-with-reader-writer-locking --nextPart2027361.KDeqtIc2Nz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAl5JayAACgkQXYcKB8Em e0arqxAAs2BMDdBX1BL6F26UneTAZ8w5R8MOruf6/NJycj1OzwF9X96BeX0cyj4q Gnryzgqb3/LXfZPWhF2HSLjuPeVjgiJOoF5S+3n9R00k0Oitqo53gFHirNzLqFYu bJThufWSFbq3agNcYgrjYe15pyOe46r9Vt/aGyjVsvX+f8J/7PRFCTkznhluzo9C tmLWbM4tbVJu8JDUD3PY/vR9SxPShYqDOlFz45bqmzHb7Dcr2fLYZC/jlbzd5af+ xTNCsjsk2U9pwR+te1MaIqJ6BDrIljis4HXLCdAMuL5ny1QKrNL1Hj/iS9ycxCnh 1lUNi0HGdRtGcpXbRBIiLkykMJMiIZoep+PkP5CND2WELURBBRVrys8xvwDD3mxJ xdvhXKAkMv2qaJpbGIQWEf/p+UDbXQXr9Xa1UeUOOHjpC8eNm1FYtKKzTL0W74lE 9KSt086kB2Y9pUMAGQWoIDyb1QKTxQV+jzx9YJEL2AzGO0NEwd+d0UJrxXX+qNbF BKd+EqdAIR/PfAp2pA4PIxAvieu9Z3jCnXkEURkhS19Rgu1G/0iBq6p8abj+CW8a 7OBNe+13SISLc0rMoX/nbH/Pwxq9MlqRJifFr05S77mKEvdNS8tz0KwN/ZVMSfA+ 2dDdXfKzPo3BGnfSOtj7G1wgUMBWOFXVLnFytQEyYXMdlWC47Ks= =70Ud -----END PGP SIGNATURE----- --nextPart2027361.KDeqtIc2Nz--