[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [RFC PATCH V2] New Xen netback implementation



On Mon, 2012-01-30 at 18:27 +0000, Wei Liu (Intern) wrote:
> On Sun, 2012-01-29 at 21:37 +0000, Konrad Rzeszutek Wilk wrote:
> > 
> > Sure. I also did some testing with limiting the amount of CPUs and found
> > that 'xl vcpu-set 0 N' make netback not work anymore :-( 
> > > 
> > > 
> 
> I just played with vcpu-set a bit, and I can reproduced this problem.
> That's a race condition.
> 
> One possible fix is remove cond_resched() in the kernel thread. After
> removing that, it fixes the problem (at least for me).
> 
> 
> Wei.
> 
> --- a/drivers/net/xen-netback/netback.c
> +++ b/drivers/net/xen-netback/netback.c
> @@ -994,7 +994,7 @@ int xenvif_kthread(void *data)
>                 wait_event_interruptible(vif->wq,
>                                          rx_work_todo(vif) ||
>                                          kthread_should_stop());
> -               cond_resched();
> +               /* cond_resched(); */
>  
>                 if (kthread_should_stop())
>                         break;
> 
> 

Hmm... Here it comes again. Ignore this fix. It's more complicated than
I thought.


Wei.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.