On Tue, Nov 03 2009, Radha Ramachandran wrote: > Hi, > I discovered the race condition when using asynch verify with libaio engine. > The code assumes that because the td->cur_depth value is not 0 that > there is still I/O pending and issues io_getevents when the I/O was > actually being verified by the asynchronous verify thread. This causes > the code to hang. > > I have attached a patch along to fix this issue. Thanks for the fix, that is indeed a race. I'll merge your patch, but change the io_u->in_cur_depth to be a IO_U_F_ flag. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html