diff options
author | 2020-04-22 10:11:35 +0800 | |
---|---|---|
committer | 2020-04-22 19:33:19 -0700 | |
commit | 58e64a312c8468f3e8adead24b71ebb3039b381e (patch) | |
tree | d59b45a9500f1a720a0bed4dd4124aff68788db9 /net/caif/caif_dev.c | |
parent | selftests: Add tests for vrf and xfrms (diff) | |
download | linux-dev-58e64a312c8468f3e8adead24b71ebb3039b381e.tar.xz linux-dev-58e64a312c8468f3e8adead24b71ebb3039b381e.zip |
macvlan: silence RCU list debugging warning
macvlan_hash_lookup() uses list_for_each_entry_rcu() for traversing
should either under RCU in fast path or the protection of rtnl_mutex.
In the case of holding RTNL, we should add the corresponding lockdep
expression to silence the following false-positive warning:
=============================
WARNING: suspicious RCU usage
5.7.0-rc1-next-20200416-00003-ga3b8d28bc #1 Not tainted
-----------------------------
drivers/net/macvlan.c:126 RCU-list traversed in non-reader section!!
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif/caif_dev.c')
0 files changed, 0 insertions, 0 deletions