hyperv: Fix a kernel warning from netvsc_linkstatus_callback()
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 5 Apr 2013 11:44:39 +0000 (11:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2013 16:15:17 +0000 (12:15 -0400)
commitfd5c07a8d6a10c7112b19f3b0d428627c62b06ab
tree49a8fa87998a4d935b1239c4f6653a107fc89a15
parentc988d1e8cbf722e34ee6124b8b89d47fec655b51
hyperv: Fix a kernel warning from netvsc_linkstatus_callback()

The warning about local_bh_enable inside IRQ happens when disconnecting a
virtual NIC.

The reason for the warning is -- netif_tx_disable() is called when the NIC
is disconnected. And it's called within irq context. netif_tx_disable() calls
local_bh_enable() which displays warning if in irq.

The fix is to remove the unnecessary netif_tx_disable & wake_queue() in the
netvsc_linkstatus_callback().

Reported-by: Richard Genoud <richard.genoud@gmail.com>
Tested-by: Long Li <longli@microsoft.com>
Tested-by: Richard Genoud <richard.genoud@gmail.com>
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>
drivers/net/hyperv/netvsc_drv.c