netvsc: fix warnings reported by lockdep
This includes a bunch of fixups for issues reported by lockdep. * ethtool routines can assume RTNL * send is done with RCU lock (and BH disable) * avoid refetching internal device struct (netvsc) instead pass it as a parameter. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
d6aac1f218
commit
867047c451
@@ -832,7 +832,7 @@ int netvsc_send(struct net_device_context *ndev_ctx,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
struct netvsc_device *net_device
|
||||
= rcu_dereference_rtnl(ndev_ctx->nvdev);
|
||||
= rcu_dereference_bh(ndev_ctx->nvdev);
|
||||
struct hv_device *device = ndev_ctx->device_ctx;
|
||||
int ret = 0;
|
||||
struct netvsc_channel *nvchan;
|
||||
|
Reference in New Issue
Block a user