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

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


Daniel McNeil wrote:

>I prefer getting the error on io_submit.
>
>
I prefer getting the error on io_getevents(). The code that handles the
output of io_getevents() already has to handle per-operation errors.
The only thing user space can reasonably do with errors returned by
io_submit() is to retry or assert. Anything else would duplicate logic
that already has to be in and is better handled by the code that handles
the output io_getevents().

io_submit() should only return errors in cases where the caller is
obviously buggy/malicious or in cases where it is not possible to
generate an event.



-
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