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

Joel Becker
2003-06-19T00:27:35Z

On Wed, Jun 18, 2003 at 05:33:27PM -0700, John Myers wrote:
> The kernel would have to be substantially more complex to report all
> errors that could possibly be detected during queuing. The kernel could
> even detect success during queuing if it really tried.

The slippery slope isn't important. POSIX specifies EAGAIN
(you concede that), EBADF, and EINVAL against nbytes|offset|reqprio.
The kernel does these checks already (where applicable).
Anyway, a caller of io_submit() already has to handle errors.
Just like a short read, you always have to be wary of them.

Joel

--

"Glory is fleeting, but obscurity is forever."
- Napoleon Bonaparte

http://www.jlbec.org/
jlbec@evilplan.org