All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] handle O_(D)SYNC for AIO
@ 2012-11-23  7:55 Christoph Hellwig
  2012-11-23  7:55 ` [PATCH 1/2] [PATCH 1/2] direct-io: implement generic deferred AIO completions Christoph Hellwig
  2012-11-23  7:55 ` [PATCH 2/2] [PATCH 2/2] direct-io: handle handle O_(D)SYNC AIO Christoph Hellwig
  0 siblings, 2 replies; 14+ messages in thread
From: Christoph Hellwig @ 2012-11-23  7:55 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Jan Kara, Jeff Moyer, Darrick J. Wong

This is my version of the AIO O_SYNC series, which is a lot simpler than
the previous attempts.  The first patch adds generic support for deferring
AIO completions to a workqueue by taking the XFS code that alter got copied
to ext4 to the core.  At least the XFS code could be further simplified
after this and a memory allocation could be dropped, but due to Dave having
other changes in that area pending I'm not going to add those bits yet.

The second patch simply adds a call to generic_write_sync from the
I/O completion handler and makes sure it is called from user context
if we have to.  This works fine for the "normal" blkdev_direct_IO callers
and XFS, but it currently breaks ext4 due to the mess that ext4 I/O
completions are.

We could work around this by requiring the filesystem to call
generic_write_sync from its own end_io handler if we we absolutely need to,
but I'd be much happier if someone who understands ext4 better than I
could fix it.  More details in the second patch.

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

end of thread, other threads:[~2012-12-20 11:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-23  7:55 [PATCH 0/2] handle O_(D)SYNC for AIO Christoph Hellwig
2012-11-23  7:55 ` [PATCH 1/2] [PATCH 1/2] direct-io: implement generic deferred AIO completions Christoph Hellwig
2012-11-27 16:17   ` Jeff Moyer
2012-12-06 19:05   ` Jan Kara
2012-12-08 12:02     ` Christoph Hellwig
2012-12-20 11:15       ` Jan Kara
2012-11-23  7:55 ` [PATCH 2/2] [PATCH 2/2] direct-io: handle handle O_(D)SYNC AIO Christoph Hellwig
2012-11-27 16:19   ` Jeff Moyer
2012-11-28  0:26     ` Darrick J. Wong
2012-11-28  0:30       ` Christoph Hellwig
2012-11-28  8:02         ` [RFC PATCH] ext4: Convert unwritten extents during end_io processing Darrick J. Wong
2012-11-28 14:34           ` Christoph Hellwig
2012-11-29 19:47             ` Darrick J. Wong
2012-12-05 13:08     ` [PATCH 2/2] [PATCH 2/2] direct-io: handle handle O_(D)SYNC AIO Jan Kara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.