[PATCH] Drivers: hv: vmbus: fix the race when querying & updating the percpu list

Dexuan Cui decui at microsoft.com
Tue May 17 08:37:43 UTC 2016


> From: devel [mailto:driverdev-devel-bounces at linuxdriverproject.org] On Behalf
> Of Dexuan Cui
> >
> > Do we need to do tasklet_schedule() to make sure there are no events
> > pending? This is probably not a big issue as some other event will
> > trigger scheduling but in some corner cases it may bite. Same question
> > applies to the code below and to vmbus_close_internal().
> 
> Hi Vitaly,
> Thanks for spotting this!
> I think you're correct.
> I'll add tasklet_schedul() before the tasklet_enable() in the 2 places.

Sorry for the typo -- I meant "after" rather than "before".

Thanks
-- Dexuan


More information about the devel mailing list