diff options
author | Sven Eckelmann <sven@narfation.org> | 2020-02-16 20:30:12 +0300 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2020-02-17 18:07:50 +0300 |
commit | 3b2582c7affde5f30bcc8321385507e66f4299e1 (patch) | |
tree | 45bb6894c030f2799980ad83a2c22bb88cc054e7 /net/batman-adv/Makefile | |
parent | edddb36644d56efc5833405bdf1c46f85677fc5c (diff) | |
download | linux-3b2582c7affde5f30bcc8321385507e66f4299e1.tar.xz |
batman-adv: Avoid RCU list-traversal in spinlock
The new CONFIG_PROVE_RCU_LIST requires a condition statement in
(h)list_for_each_entry_rcu when the code might be executed in a non RCU
non-reader section with the writer lock. Otherwise lockdep might cause a
false positive warning like
=============================
WARNING: suspicious RCU usage
-----------------------------
translation-table.c:940 RCU-list traversed in non-reader section!!
batman-adv is (mostly) following the examples from the RCU documentation
and is using the normal list-traversal primitives instead of the RCU
list-traversal primitives when the writer (spin)lock is held.
The remaining users of RCU list-traversal primitives with writer spinlock
have to be converted to the same style as the rest of the code.
Reported-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/Makefile')
0 files changed, 0 insertions, 0 deletions