Re: [PATCH v9 6/6] block: loop: support DIO & AIO

Christoph Hellwig
2015-08-10T08:08:48Z

On Sun, Aug 09, 2015 at 10:50:41PM -0400, Ming Lei wrote:
> Christoph, could you share your idea again about this approch?
>
> If you still don't think it is good to switch between buffered I/O
> and direct I/O, I will not do that in next post.

If we epxose a 512 byte block size to the loop device people will use
it, for example mkfs.xfs might do smaller I/O, extN will default to
small blocksize for small devices, etc.

If you are using a loop devices on a 4k sector backing device and care
about performance (which current loop users generally don't..) just
make sure to set the loop block size to 4k, which Hannes' series will
allow us to do easily.