[Linux-kernel-mentees] [PATCH] net: batman-adv: Use built-in RCU list checking
madhuparnabhowmik10 at gmail.com
Mon Feb 17 12:05:25 UTC 2020
On Sun, Feb 16, 2020 at 05:17:36PM +0100, Sven Eckelmann wrote:
> 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 . Because a manual
> inspection should have noticed that there will always be the lock around
> these ones.
I have been working on similar issues (passing cond argument to
list_for_each_entry_Rcu()). That's why may be I didn't notice that in
this case rcu variant is not required.
Thank you for taking a closer look and fixing it the right way.
> KInd regards,
>  https://www.kernel.org/doc/html/v5.6-rc1/RCU/whatisRCU.html#analogy-with-reader-writer-locking
More information about the Linux-kernel-mentees