]> git.baikalelectronics.ru Git - kernel.git/commit
netvsc: save pointer to parent netvsc_device in channel table
authorstephen hemminger <stephen@networkplumber.org>
Wed, 19 Jul 2017 18:53:18 +0000 (11:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jul 2017 05:20:05 +0000 (22:20 -0700)
commit9863baf73f3923d0781bb6d7c4229d394b0c2302
treedf956c396785926a4d78f4075fdfbd004e93f3a0
parentdfcf9f4341708264130b686a616b276aa5bed48f
netvsc: save pointer to parent netvsc_device in channel table

Keep back pointer in the per-channel data structure to
avoid any possible RCU related issues when napi poll is
called but netvsc_device is in RCU limbo.

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