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

From: John Myers (
Date: Wed Jun 18 2003 - 19:33:27 EST

Joel Becker wrote:

>But POSIX specifes that all detection that can happen before queuing should.
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.

This is not a reasonable requirement. A correctly written program has
to be able to handle errors reported asynchronously. Why else would
they be using an asynchronous API?

> 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.
So? That is a miniscule amount of resources used by an extremely rare
condition. Such a picayune optimization hardly justifies the necessary
increase in complexity.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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