Re: [PATCH 2.6.3-mm4] direct_io_worker-aio_complete patch (fixes AIO Oops)

From: Tobias Diedrich
Date: Fri Mar 05 2004 - 10:50:20 EST


Daniel McNeil wrote:

> Here is the fix to this AIO oops. An AIO O_DIRECT request was extending
> the file so it was done synchronously. However, the request got an
> EFAULT and direct_io_worker() was calling aio_complete() on the iocb and
> returning the EFAULT. When io_submit_one() got the EFAULT return,
> it assume it had to call aio_complete() since the i/o never got
> queued.

Thanks, this does indeed fix the oops for me.

--
Tobias PGP: http://9ac7e0bc.2ya.com
Be vigilant!

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