]> www.infradead.org Git - users/dwmw2/linux.git/commit
block: fix bio_split_rw_at to take zone_write_granularity into account
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2024 06:26:30 +0000 (07:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 11 Nov 2024 16:06:45 +0000 (09:06 -0700)
commit7ecd2cd4fae3e8410c0a6620f3a83dcdbb254f02
tree619a3dacf2613b18f3e6e163663d9df2c5535bfb
parent60dc5ea6bcfd078b71419640d49afa649acf9450
block: fix bio_split_rw_at to take zone_write_granularity into account

Otherwise it can create unaligned writes on zoned devices.

Fixes: a805a4fa4fa3 ("block: introduce zone_write_granularity limit")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20241104062647.91160-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c