[PATCH v3 17/21] md/raid10: split reshape bios before bitmap accounting
Yu Kuai <[email protected]> Tue, 28 Jul 2026 16:49:17 +0800
| Newsgroups | gmane.linux.raid,gmane.linux.kernel |
|---|---|
| Message-ID | <8abef42ad491fe452b82d672c2fdeb6c64c20c91.1785206690.git.yukuai@fygo.io> |
From: Yu Kuai <[email protected]> Use the shared mddev_bio_split_at_reshape_offset() helper so RAID10 submits only one-side bios to llbitmap during reshape. Signed-off-by: Yu Kuai <[email protected]> --- drivers/md/raid10.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index e50e4adee389..fd364a2e2fd9 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -1911,6 +1911,12 @@ static bool raid10_make_request(struct mddev *mddev, struct bio *bio) sectors = chunk_sects - (bio->bi_iter.bi_sector & (chunk_sects - 1)); + + bio = mddev_bio_split_at_reshape_offset(mddev, bio, §ors, + &conf->bio_split); + if (!bio) + return true; + if (!__make_request(mddev, bio, sectors)) md_write_end(mddev); -- 2.51.0