]> git.ipfire.org Git - thirdparty/linux.git/commit
md/raid0: convert raid0_handle_discard() to use bio_submit_split_bioset()
authorYu Kuai <yukuai3@huawei.com>
Wed, 10 Sep 2025 06:30:47 +0000 (14:30 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Sep 2025 11:23:45 +0000 (05:23 -0600)
commit5b38ee5a4a12cfdefd848f7ec09da3e9007ad55f
treebd53e0758a3fc402e78958d0f89c8cf44a5fc0f4
parente37b5596a19be9a150cb194ec32e78f295a3574b
md/raid0: convert raid0_handle_discard() to use bio_submit_split_bioset()

Unify bio split code, and prepare to fix ordering of split IO

Noted commit 319ff40a5427 ("md/raid0: Fix performance regression for large
sequential writes") already fix ordering of split IO by remapping bio to
underlying disks before resubmitting it, with the respect
md_submit_bio() already split it by sectors, and raid0_make_request()
will split at most once for unaligned IO. This is a bit hacky and we'll
convert this to solution in general later.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid0.c