All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vmbus: re-enable tasklet
@ 2017-06-22 23:16 Stephen Hemminger
  2017-06-29 23:31 ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2017-06-22 23:16 UTC (permalink / raw)
  To: kys, haiyang; +Cc: devel, stable, Stephen Hemminger

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 <sthemmin@microsoft.com>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] vmbus: re-enable tasklet
  2017-06-22 23:16 [PATCH] vmbus: re-enable tasklet Stephen Hemminger
@ 2017-06-29 23:31 ` Stephen Hemminger
  2017-06-29 23:35   ` KY Srinivasan
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2017-06-29 23:31 UTC (permalink / raw)
  To: kys, haiyang; +Cc: devel, stable, Greg KH

On Thu, 22 Jun 2017 16:16:54 -0700
Stephen Hemminger <stephen@networkplumber.org> wrote:

> 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 <sthemmin@microsoft.com>
> ---
>  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;
>  }
>  

Ping.

What is the state of this patch? Why is it not queued for 4.11 stable?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] vmbus: re-enable tasklet
  2017-06-29 23:31 ` Stephen Hemminger
@ 2017-06-29 23:35   ` KY Srinivasan
  2017-06-30  3:27     ` KY Srinivasan
  0 siblings, 1 reply; 4+ messages in thread
From: KY Srinivasan @ 2017-06-29 23:35 UTC (permalink / raw)
  To: Stephen Hemminger, Haiyan Yang
  Cc: devel@linuxdriverproject.org, stable@vger.kernel.org, Greg KH



> -----Original Message-----
> From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> Sent: Thursday, June 29, 2017 4:31 PM
> To: KY Srinivasan <kys@microsoft.com>; Haiyan Yang
> <haiyang@microsoft.com>
> Cc: devel@linuxdriverproject.org; stable@vger.kernel.org; Greg KH
> <greg@kroah.com>
> Subject: Re: [PATCH] vmbus: re-enable tasklet
> 
> On Thu, 22 Jun 2017 16:16:54 -0700
> Stephen Hemminger <stephen@networkplumber.org> wrote:
> 
> > 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 <sthemmin@microsoft.com>
> > ---
> >  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;
> >  }
> >
> 
> Ping.
> 
> What is the state of this patch? Why is it not queued for 4.11 stable?

I will submit this shortly.

K. Y

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] vmbus: re-enable tasklet
  2017-06-29 23:35   ` KY Srinivasan
@ 2017-06-30  3:27     ` KY Srinivasan
  0 siblings, 0 replies; 4+ messages in thread
From: KY Srinivasan @ 2017-06-30  3:27 UTC (permalink / raw)
  To: KY Srinivasan, Stephen Hemminger, Haiyan Yang
  Cc: devel@linuxdriverproject.org, stable@vger.kernel.org



> -----Original Message-----
> From: devel [mailto:driverdev-devel-bounces@linuxdriverproject.org] On
> Behalf Of KY Srinivasan
> Sent: Thursday, June 29, 2017 4:36 PM
> To: Stephen Hemminger <stephen@networkplumber.org>; Haiyan Yang
> <haiyang@microsoft.com>
> Cc: devel@linuxdriverproject.org; stable@vger.kernel.org
> Subject: RE: [PATCH] vmbus: re-enable tasklet
> 
> 
> 
> > -----Original Message-----
> > From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> > Sent: Thursday, June 29, 2017 4:31 PM
> > To: KY Srinivasan <kys@microsoft.com>; Haiyan Yang
> > <haiyang@microsoft.com>
> > Cc: devel@linuxdriverproject.org; stable@vger.kernel.org; Greg KH
> > <greg@kroah.com>
> > Subject: Re: [PATCH] vmbus: re-enable tasklet
> >
> > On Thu, 22 Jun 2017 16:16:54 -0700
> > Stephen Hemminger <stephen@networkplumber.org> wrote:
> >
> > > 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 <sthemmin@microsoft.com>
> > > ---
> > >  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;
> > >  }
> > >
> >
> > Ping.
> >
> > What is the state of this patch? Why is it not queued for 4.11 stable?
> 
> I will submit this shortly.
> 
> K. Y

Looks like I have already tagged the patch for "stable"

K. Y
> _______________________________________________
> devel mailing list
> devel@linuxdriverproject.org
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdriverd
> ev.linuxdriverproject.org%2Fmailman%2Flistinfo%2Fdriverdev-
> devel&data=02%7C01%7Ckys%40microsoft.com%7C13413d4ede084b455e74
> 08d4bf479602%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636343
> 761559957369&sdata=aTcCIkpVDcwMIiZIavf2pvYdqdBQLhBuIStgb4%2FI%2FC
> 4%3D&reserved=0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-30  3:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-22 23:16 [PATCH] vmbus: re-enable tasklet Stephen Hemminger
2017-06-29 23:31 ` Stephen Hemminger
2017-06-29 23:35   ` KY Srinivasan
2017-06-30  3:27     ` KY Srinivasan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.