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

Joel Becker
2003-06-18T00:28:20Z

On Tue, Jun 17, 2003 at 05:25:09PM -0700, John Myers wrote:
> No, you just declare that those errors happend "after queuing."

But POSIX specifes that all detection that can happen before
queuing should.

> 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.

You also now require a poll round and aditional system call to
see the errors. In addition, you waste resources until you pick up the
errorneous call.

Joel

--

Life's Little Instruction Book #237

"Seek out the good in people."

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