]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: use RCU to fix concurrent rx and queue changes
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 20 Mar 2018 22:03:03 +0000 (15:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 16:45:09 +0000 (12:45 -0400)
commit706e505dfcc6e04b217347e5dce49b1bbf658fef
tree2ad599ce6ff91b8f1b298adf73d4fdde29f756af
parentd09c2cc3645257b26b4c7da3965de55094eb3dc7
hv_netvsc: use RCU to fix concurrent rx and queue changes

The receive processing may continue to happen while the
internal network device state is in RCU grace period.
The internal RNDIS structure is associated with the
internal netvsc_device structure; both have the same
RCU lifetime.

Defer freeing all associated parts until after grace
period.

Fixes: 72015cb82e5a ("hv_netvsc: netvsc_teardown_gpadl() split")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/rndis_filter.c