netvsc: uses RCU instead of removal flag
authorstephen hemminger <stephen@networkplumber.org>
Wed, 22 Mar 2017 21:51:01 +0000 (14:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Mar 2017 02:38:56 +0000 (19:38 -0700)
commita0be450e19d397e9ff215e32ed31bc51339b460a
treefb7c297434d8817060216d1837eeb3e9effa47c3
parent545a8e79bd1cc8774877a26275171a2ec8881c9e
netvsc: uses RCU instead of removal flag

It is cleaner to use RCU protected pointer (nvdev_ctx->nvdev)
to indicate device is in removed state, rather than having a separate
boolean flag. By using the pointer the context can be checked
by static checkers and dynamic lockdep.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c