Messages in this thread | | | Date | Tue, 17 Jun 2003 17:25:09 -0700 | From | (John Myers) | Subject | Re: [PATCH 2.5.71-mm1] aio process hang on EINVAL |
| |
Joel Becker wrote:
>POSIX 1003.1 says this about aio_read() and aio_write(): > If an error condition is encountered during queuing, the function > call shall return without having initiated or queued the request. > >If you intend to ever allow a POSIX wrapper to these interfaces (I have >one, for instance), you need to return EINVAL, EBADF, and the like from >io_submit(). > No, you just declare that those errors happend "after queuing."
>A user has to handle EAGAIN, so io_submit() cannot return void, and you >already have error handling logic here. > > EAGAIN error handling does not require contextual information about the operation being queued. Error handling logic that knows about the context of the operation queued already has to exist in the io_getevents() processing.
[unhandled content-type:application/x-pkcs7-signature] | |