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?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at