Re: [RFC] [PATCH] 2.5.35 patch for making DIO async

From: Badari Pulavarty (
Date: Wed Sep 18 2002 - 15:47:06 EST


aio_read/aio_write() are now working with a minor fix to fs/aio.c

        if (likely(EIOCBQUEUED == ret))

                needs to be changed to

        if (likely(-EIOCBQUEUED == ret))

I was wondering what happens to following case (I think this
happend in my test program).

Lets say, I did an sys_io_submit() and my test program did exit().
When the IO complete happend, it tried to do following and got
an OOPS in aio_complete().

        if (ctx == &ctx->mm->default_kioctx) {

I think "mm" is freed up, when process exited. Do you think this is
possible ? How do we handle this ?

- Badari
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 Sep 23 2002 - 22:00:24 EST