Skip to content

Commit f270f85

Browse files
committed
Merge tag 'md-fixes-2023-05-24' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md into block-6.4
Pull MD fix from Song: "This change fixes a raid5 regression since 5.12 kernels." * tag 'md-fixes-2023-05-24' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md: md/raid5: fix miscalculation of 'end_sector' in raid5_read_one_chunk()
2 parents 9491d01 + 8557dc2 commit f270f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/raid5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5516,7 +5516,7 @@ static int raid5_read_one_chunk(struct mddev *mddev, struct bio *raid_bio)
55165516

55175517
sector = raid5_compute_sector(conf, raid_bio->bi_iter.bi_sector, 0,
55185518
&dd_idx, NULL);
5519-
end_sector = bio_end_sector(raid_bio);
5519+
end_sector = sector + bio_sectors(raid_bio);
55205520

55215521
rcu_read_lock();
55225522
if (r5c_big_stripe_cached(conf, sector))

0 commit comments

Comments
 (0)