linux-sg2042/drivers/net/hyperv
Haiyang Zhang d66ab51442 hv_netvsc: Move subchannel waiting to rndis_filter_device_remove()
During hot add, vmbus_device_register() is called from vmbus_onoffer(), on
the same workqueue as the subchannel offer message work-queue, so
subchannel offer won't be processed until the vmbus_device_register()/...
/netvsc_probe() is done.
Also, vmbus_device_register() is called with channel_mutex locked, which
prevents subchannel processing too. So the "waiting for sub-channel
processing" will not success in hot add case. But, in usual module loading,
the netvsc_probe() is called from different code path, and doesn't fail.

This patch resolves the deadlock during NIC hot-add, and speeds up NIC
loading time.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-03-07 15:37:50 -05:00
..
Kconfig
Makefile
hyperv_net.h hv_netvsc: add ethtool support for set and get of settings 2016-02-29 17:08:50 -05:00
netvsc.c hv_netvsc: Fix book keeping of skb during batching process 2016-01-25 10:51:53 -08:00
netvsc_drv.c hv_netvsc: add ethtool support for set and get of settings 2016-02-29 17:08:50 -05:00
rndis_filter.c hv_netvsc: Move subchannel waiting to rndis_filter_device_remove() 2016-03-07 15:37:50 -05:00