Christoph Hellwig 7b7a8665ed direct-io: Implement generic deferred AIO completions
Add support to the core direct-io code to defer AIO completions to user
context using a workqueue.  This replaces opencoded and less efficient
code in XFS and ext4 (we save a memory allocation for each direct IO)
and will be needed to properly support O_(D)SYNC for AIO.

The communication between the filesystem and the direct I/O code requires
a new buffer head flag, which is a bit ugly but not avoidable until the
direct I/O code stops abusing the buffer_head structure for communicating
with the filesystems.

Currently this creates a per-superblock unbound workqueue for these
completions, which is taken from an earlier patch by Jan Kara.  I'm
not really convinced about this use and would prefer a "normal" global
workqueue with a high concurrency limit, but this needs further discussion.

JK: Fixed ext4 part, dynamic allocation of the workqueue.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-09-04 09:23:46 -04:00
..
2013-05-07 18:45:36 -05:00
2013-06-27 13:34:12 -05:00
2013-05-07 18:45:36 -05:00
2012-11-19 20:11:24 -06:00
2013-04-21 14:57:43 -05:00
2013-05-30 17:26:31 -05:00
2013-05-30 17:26:31 -05:00
2013-05-07 18:45:36 -05:00
2013-05-30 17:26:31 -05:00
2012-11-19 20:11:24 -06:00
2013-07-13 11:40:24 -07:00
2013-07-09 12:29:12 -07:00
2013-06-29 12:57:00 +04:00
2013-06-29 12:57:00 +04:00
2013-06-29 12:57:00 +04:00
2013-06-27 14:27:18 -05:00
2013-06-27 14:26:21 -05:00
2013-06-27 13:34:12 -05:00
2013-06-27 13:34:12 -05:00
2013-05-07 18:45:36 -05:00
2013-06-27 13:34:12 -05:00
2013-05-07 18:45:36 -05:00
2013-05-07 18:45:36 -05:00
2013-06-19 14:54:17 -05:00
2012-10-17 12:01:25 -05:00
2013-07-09 12:29:12 -07:00
2013-06-27 13:34:12 -05:00
2013-06-29 12:57:00 +04:00
2013-05-07 18:45:36 -05:00