exynos-linux-stable/drivers/net/hyperv
stephen hemminger de2ecec26d netvsc: fix deadlock betwen link status and removal
[ Upstream commit 9b4e946ce14e20d7addbfb7d9139e604f9fda107 ]

There is a deadlock possible when canceling the link status
delayed work queue. The removal process is run with RTNL held,
and the link status callback is acquring RTNL.

Resolve the issue by using trylock and rescheduling.
If cancel is in process, that block it from happening.

Fixes: 122a5f6410 ("staging: hv: use delayed_work for netvsc_send_garp()")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-20 08:19:54 +02:00
..
hyperv_net.h hv_netvsc: fix comments 2016-09-24 09:36:12 -04:00
Kconfig
Makefile
netvsc.c Drivers: hv: vmbus: finally fix hv_need_to_signal_on_read() 2017-02-14 15:25:39 -08:00
netvsc_drv.c netvsc: fix deadlock betwen link status and removal 2017-09-20 08:19:54 +02:00
rndis_filter.c hv_netvsc: style cleanups 2016-08-23 12:05:36 -07:00