lkml.org 
[lkml]   [2002]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC] [PATCH] 2.5.35 patch for making DIO async
Date
Ben,

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

io_submit_one():

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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.195 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site