linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [HELP]:  about aio+dio
@ 2014-08-20  4:05 Ma, Jianpeng
  2014-08-20 17:26 ` John Utz
  2014-08-20 18:43 ` Zach Brown
  0 siblings, 2 replies; 11+ messages in thread
From: Ma, Jianpeng @ 2014-08-20  4:05 UTC (permalink / raw)
  To: viro@zeniv.linux.org.uk
  Cc: Sage Weil, Mark Kirkwood, linux-aio@kvack.org,
	linux-fsdevel@vger.kernel.org

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.

Q1: Is close() wait until all aio to complete? Is exit() to wait until aio to complete?
Q2:Who may change the content? The program don't change.
Q3:My guess: only using aio, after io_submit, the content already copy to kernel from use-space. But for direct, kernel can't copy. 
Later kernel do direct_io but the content changed.


Thanks!
Jianpeng Ma

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-08-28  1:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-20  4:05 [HELP]: about aio+dio Ma, Jianpeng
2014-08-20 17:26 ` John Utz
2014-08-20 18:43 ` Zach Brown
2014-08-21  2:01   ` Ma, Jianpeng
2014-08-21 16:58     ` Zach Brown
2014-08-22  0:40       ` Ma, Jianpeng
2014-08-26 18:52         ` Zach Brown
2014-08-27  0:34           ` Ma, Jianpeng
2014-08-27 13:38             ` Jeff Moyer
2014-08-27 16:03             ` Zach Brown
2014-08-28  1:45               ` Ma, Jianpeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).