Thread (10 messages) 10 messages, 3 authors, 2014-08-28

Re: [HELP]: about aio+dio

From: Zach Brown <hidden>
Date: 2014-08-21 16:58:46

On Thu, Aug 21, 2014 at 02:01:38AM +0000, Ma, Jianpeng wrote:
quoted
-----Original Message-----
From: Zach Brown [mailto:zab@zabbo.net]
Sent: Thursday, August 21, 2014 2:44 AM
To: Ma, Jianpeng
Cc: viro@zeniv.linux.org.uk; Sage Weil; Mark Kirkwood; linux-aio@kvack.org;
linux-fsdevel@vger.kernel.org
Subject: Re: [HELP]: about aio+dio

On Wed, Aug 20, 2014 at 04:05:01AM +0000, Ma, Jianpeng wrote:
quoted
Hi all,
   At present, I met a problem.
Open(block, DIRECT_IO)
Io_submit()--->write operation
Close()
Exit(0)

After exit(), we found the content of block changed. If we only use aio, the
bug can't reproduce.
quoted
Q1: Is close() wait until all aio to complete? Is exit() to wait until aio to
complete?

exit().
Can you explain in detail? If you can point the code, I think it better.
Huh, look at that.  It certianly used to.  But it looks like exit_aio()
upstream isn't waiting for iocbs to complete.  So we'll need to get that
fixed :).

- z

--
To unsubscribe, send a message with 'unsubscribe linux-aio' in
the body to majordomo@kvack.org.  For more info on Linux AIO,
see: http://www.kvack.org/aio/
Don't email: <a href=mailto:"aart@kvack.org">aart@kvack.org</a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help