Skip to content

Commit a134cd8

Browse files
committed
Merge tag 'md-fixes-20231201-1' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md into block-6.7
Pull MD fix from Song: "This change fixes issue with raid456 reshape." * tag 'md-fixes-20231201-1' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md: md/raid6: use valid sector values to determine if an I/O should wait on the reshape
2 parents 8ad3ac9 + c467e97 commit a134cd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/md/raid5.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5892,11 +5892,11 @@ static bool stripe_ahead_of_reshape(struct mddev *mddev, struct r5conf *conf,
58925892
int dd_idx;
58935893

58945894
for (dd_idx = 0; dd_idx < sh->disks; dd_idx++) {
5895-
if (dd_idx == sh->pd_idx)
5895+
if (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx)
58965896
continue;
58975897

58985898
min_sector = min(min_sector, sh->dev[dd_idx].sector);
5899-
max_sector = min(max_sector, sh->dev[dd_idx].sector);
5899+
max_sector = max(max_sector, sh->dev[dd_idx].sector);
59005900
}
59015901

59025902
spin_lock_irq(&conf->device_lock);

0 commit comments

Comments
 (0)