]> www.infradead.org Git - users/hch/block.git/commit
loop: also use the default block size from an underlying block device
authorChristoph Hellwig <hch@lst.de>
Mon, 17 Jun 2024 06:04:34 +0000 (08:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Jun 2024 13:58:28 +0000 (07:58 -0600)
commit4ce37fe0938b02b7b947029c40b72d76a22a3882
tree2e6d78a54e8e7071e347f59cde2123ff10cd7359
parenta17ece76bcfe7b86327b19cae1652d7c62068a30
loop: also use the default block size from an underlying block device

Fix the code in loop_reconfigure_limits to pick a default block size for
O_DIRECT file descriptors to also work when the loop device sits on top
of a block device and not just on a regular file on a block device based
file system.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20240617060532.127975-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c