RE: [PATCH] Drivers: hv: hv_fcopy: fix a race condition for SMP guest

2014-07-16 Thread KY Srinivasan
edhat.com > Cc: KY Srinivasan; Haiyang Zhang > Subject: [PATCH] Drivers: hv: hv_fcopy: fix a race condition for SMP guest > > We should schedule the 5s "timer work" before starting the data transfer, > otherwise, the data transfer code may finish so fast on another virtual cpu

[PATCH] Drivers: hv: hv_fcopy: fix a race condition for SMP guest

2014-07-15 Thread Dexuan Cui
We should schedule the 5s "timer work" before starting the data transfer, otherwise, the data transfer code may finish so fast on another virtual cpu that when the code(fcopy_write()) trying to cancel the 5s "timer work" can occasionally fail because the "timer work" may haven't been scheduled yet