Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 -2
+2 -2
drivers/md/raid5.c
··· 5892 5892 int dd_idx; 5893 5893 5894 5894 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) 5896 5896 continue; 5897 5897 5898 5898 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); 5900 5900 } 5901 5901 5902 5902 spin_lock_irq(&conf->device_lock);