diff options
author | Mikulas Patocka <[email protected]> | 2024-11-18 15:52:50 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-11-18 14:54:50 -0700 |
commit | 9c0ba14828d64744ccd195c610594ba254a1a9ab (patch) | |
tree | bb269ff99862de485419ace4ead886f13beaee56 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | a3f143c461444c0b56360bbf468615fa814a8372 (diff) |
blk-settings: round down io_opt to physical_block_size
There was a bug report [1] where the user got a warning alignment
inconsistency. The user has optimal I/O 16776704 (0xFFFE00) and physical
block size 4096. Note that the optimal I/O size may be set by the DMA
engines or SCSI controllers and they have no knowledge about the disks
attached to them, so the situation with optimal I/O not aligned to
physical block size may happen.
This commit makes blk_validate_limits round down optimal I/O size to the
physical block size of the block device.
Closes: https://lore.kernel.org/dm-devel/[email protected]/T/ [1]
Signed-off-by: Mikulas Patocka <[email protected]>
Fixes: a23634644afc ("block: take io_opt and io_min into account for max_sectors")
Cc: [email protected] # v6.11+
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions