Re: [PATCH 2.5.71-mm1] aio process hang on EINVAL

From: John Myers (jgmyers@netscape.com)
Date: Tue Jun 17 2003 - 19:25:09 EST


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.



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



This archive was generated by hypermail 2b29 : Mon Jun 23 2003 - 22:00:23 EST