Re: [PATCH][RFC] AIO: always reinitialize iocb->ki_run_list at the end of aio_run_iocb()

From: Jeff Moyer
Date: Sun Jun 27 2010 - 12:11:07 EST


Sergey Temerkhanov <temerkhanov@xxxxxxxxxxx> writes:

> The problem with kick_iocb() is exactly as this: If retry() method
> returns -EIOCBQUEUED to aio_run_iocb() then any subsequent call to
> kick_iocb() results in failure. Is it expected behavior?

* If ki_retry returns -EIOCBQUEUED it has made a promise that aio_complete()
* will be called on the kiocb pointer in the future. The AIO core will
* not ask the method again -- ki_retry must ensure forward progress.

Does that answer your question?

Cheers,
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/