diff options
author | 2019-09-04 21:49:01 +0200 | |
---|---|---|
committer | 2019-10-01 09:36:01 -0600 | |
commit | 85560117d00f5d528e928918b8f61cadcefff98b (patch) | |
tree | 56f84ad04027cb70b6536118004d519688c89cc6 /scripts/gdb/linux/utils.py | |
parent | Merge branch 'nvme-5.4' of git://git.infradead.org/nvme into for-linus (diff) | |
download | wireguard-linux-85560117d00f5d528e928918b8f61cadcefff98b.tar.xz wireguard-linux-85560117d00f5d528e928918b8f61cadcefff98b.zip |
loop: change queue block size to match when using DIO
The loop driver assumes that if the passed in fd is opened with
O_DIRECT, the caller wants to use direct I/O on the loop device.
However, if the underlying block device has a different block size than
the loop block queue, direct I/O can't be enabled. Instead of requiring
userspace to manually change the blocksize and re-enable direct I/O,
just change the queue block sizes to match, as well as the io_min size.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martijn Coenen <maco@android.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions