On Tue, Jun 11, 2024 at 02:56:59PM +0900, Damien Le Moal wrote:
+ if (!bsize)
+ bsize = loop_default_blocksize(lo, inode->i_sb->s_bdev);
If bsize is specified and there is a backing dev used with direct IO, should it
be checked that bsize is a multiple of bdev_logical_block_size(backing_bdev) ?
For direct I/O that check would be useful. For buffered I/O we can do
read-modify-write cycles. However this series is already huge and not
primarily about improving the loop driver parameter validation, so
I'll defer this for now.