Christoph Hellwig <hch@xxxxxxxxxxxxx> writes: > 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 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 unbnound workqueue for these > completions, which is taken from an earlier patch by Jan Kara. I'm > not really convince about this use and would prefer a "normal" global > workqueue with a high concurrently limit, but this needs further discussion. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> I like this a lot, thanks Christoph. Acked-by: Jeff Moyer <jmoyer@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html