Return-Path: Received: from mail-pg0-f49.google.com ([74.125.83.49]:32852 "EHLO mail-pg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753584AbdFVXRF (ORCPT ); Thu, 22 Jun 2017 19:17:05 -0400 Received: by mail-pg0-f49.google.com with SMTP id f127so13894623pgc.0 for ; Thu, 22 Jun 2017 16:17:05 -0700 (PDT) From: Stephen Hemminger To: kys@microsoft.com, haiyang@microsoft.com Cc: devel@linuxdriverproject.org, stable@vger.kernel.org, Stephen Hemminger Subject: [PATCH] vmbus: re-enable tasklet Date: Thu, 22 Jun 2017 16:16:54 -0700 Message-Id: <20170622231654.14474-1-sthemmin@microsoft.com> Sender: stable-owner@vger.kernel.org List-ID: 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. Patch for upstream is pending, but less urgent since problem doesn't happen with network driver in 4.12. Signed-off-by: Stephen Hemminger --- drivers/hv/channel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 321b8833fa6f..36c9ce191b74 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; } -- 2.11.0