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
..
2011-07-25 14:30:23 -04:00
2013-05-07 20:16:25 -07:00
2010-09-10 09:18:15 -07:00
2013-06-29 12:57:02 +04:00
2013-05-07 18:38:27 -07:00
2011-07-25 14:58:15 -07:00
2013-05-07 20:16:25 -07:00
2013-06-29 12:57:02 +04:00
2011-02-21 11:18:23 +08:00
2008-10-13 13:57:57 -07:00
2013-02-26 02:46:10 -05:00
2008-02-03 17:33:42 +02:00
2011-05-23 23:37:20 -07:00
2011-03-31 11:26:23 -03:00
2011-07-24 10:34:54 -07:00
2012-01-04 08:56:31 -06:00
2011-03-31 11:26:23 -03:00
2012-05-29 23:28:40 -04:00
2011-02-24 16:22:20 +08:00
2008-01-25 15:05:46 -08:00
2012-01-03 22:55:02 -05:00