RE: [PATCH] aio: fix kernel bug when page is temporally busy

From: Jiri Kosina
Date: Fri Feb 09 2007 - 05:13:26 EST


On Fri, 9 Feb 2007, Ananiev, Leonid I wrote:

> I have used EIOCBRETRY in the patch to minimize source code modification
> only. It is notable that EIOCBRETRY is never set in kernel, but tested
> only.

There is indeed something strange in aio in 2.6.20 (and maybe older) - for
example do_generic_mapping_read() gets stuck inside lock_page() in the
situation when the page is not up-to-date, instead of returning properl
error to aio_run_cb().

Or does it work in some other way and I get it wrong?

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