Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1674298 > unrolled thread

[PATCH 0/2] Drivers: hv: Miscellaneous fixes

Started bykys@exchange.microsoft.com
First post2017-06-25 21:50 +0200
Last post2017-06-25 21:50 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] Drivers: hv: Miscellaneous fixes  kys@exchange.microsoft.com - 2017-06-25 21:50 +0200
    [PATCH 2/2] vmbus: re-enable channel tasklet kys@exchange.microsoft.com - 2017-06-25 21:50 +0200

#1674298 — [PATCH 0/2] Drivers: hv: Miscellaneous fixes

Fromkys@exchange.microsoft.com
Date2017-06-25 21:50 +0200
Subject[PATCH 0/2] Drivers: hv: Miscellaneous fixes
Message-ID<tWlHH-Kx-5@gated-at.bofh.it>
From: K. Y. Srinivasan <kys@microsoft.com>

Miscellaneous fixes.

Alex Ng (1):
  Tools: hv: vss: Skip freezing filesystems backed by loop

Stephen Hemminger (1):
  vmbus: re-enable channel tasklet

 drivers/hv/channel.c     |    2 ++
 tools/hv/hv_vss_daemon.c |    7 +++++++
 2 files changed, 9 insertions(+), 0 deletions(-)

[toc] | [next] | [standalone]


#1674299 — [PATCH 2/2] vmbus: re-enable channel tasklet

Fromkys@exchange.microsoft.com
Date2017-06-25 21:50 +0200
Subject[PATCH 2/2] vmbus: re-enable channel tasklet
Message-ID<tWlHH-Kx-13@gated-at.bofh.it>
In reply to#1674298
From: Stephen Hemminger <stephen@networkplumber.org>

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
---
 drivers/hv/channel.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c
index e9bf0bb..e57cc40 100644
--- a/drivers/hv/channel.c
+++ b/drivers/hv/channel.c
@@ -606,6 +606,8 @@ static int vmbus_close_internal(struct vmbus_channel *channel)
 		get_order(channel->ringbuffer_pagecount * PAGE_SIZE));
 
 out:
+	/* re-enable tasklet for use on re-open */
+	tasklet_enable(&channel->callback_event);
 	return ret;
 }
 
-- 
1.7.1

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web