]> git.baikalelectronics.ru Git - kernel.git/commit
net: get rid of lockdep_set_class_and_subclass()
authorCong Wang <xiyou.wangcong@gmail.com>
Fri, 26 Jun 2020 18:24:22 +0000 (11:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jun 2020 04:37:23 +0000 (21:37 -0700)
commitae611ff01bf246281f0505ea1a52cc5162da74c8
tree153ca1c3e43edef396381db6091834acc0b31809
parent5a452877e92b1b6e8a2b1e44fcc0f0ec90e9e98f
net: get rid of lockdep_set_class_and_subclass()

lockdep_set_class_and_subclass() is meant to reduce
the _nested() annotations by assigning a default subclass.
For addr_list_lock, we have to compute the subclass at
run-time as the netdevice topology changes after creation.

So, we should just get rid of these
lockdep_set_class_and_subclass() and stick with our _nested()
annotations.

Fixes: 2332595d9fa4 ("net: change addr_list_lock back to static key")
Suggested-by: Taehee Yoo <ap420073@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c
drivers/net/macvlan.c
net/8021q/vlan_dev.c