vmbus: re-enable channel tasklet
authorStephen Hemminger <stephen@networkplumber.org>
Sun, 25 Jun 2017 19:47:46 +0000 (12:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 13:00:47 +0000 (15:00 +0200)
commit6463a4571ceefc43908df4b016d8d5d8b8e85357
treef1b08f763e83336500666390db0f5d900cd6a8d7
parenteba9718ed25b2f8a3c066bf985edd5046485a018
vmbus: re-enable channel tasklet

This problem shows up in 4.11 when netvsc driver is removed and reloaded.
The problem is that the channel is closed during module removal and the
tasklet for processing responses is disabled. When module is reloaded
the channel is reopened but the tasklet is marked as disabled.
The fix is to re-enable tasklet at the end of close which gets it back
to the initial state.

The issue is less urgent in 4.12 since network driver now uses NAPI
and not the tasklet; and other VMBUS devices are rarely unloaded/reloaded.

Fixes: dad72a1d2844 ("vmbus: remove hv_event_tasklet_disable/enable")

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel.c