Re: [PATCH] md: ensure resync is prioritized over recovery

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



在 2025/02/14 9:11, Yu Kuai 写道:

在 2025/02/13 21:15, linan666@xxxxxxxxxxxxxxx 写道:
From: Li Nan <linan122@xxxxxxxxxx>

If a new disk is added during resync, the resync process is interrupted,
and recovery is triggered, causing the previous resync to be lost. In
reality, disk addition should not terminate resync, fix it.

Steps to reproduce the issue:
   mdadm -CR /dev/md0 -l1 -n3 -x1 /dev/sd[abcd]
   mdadm --fail /dev/md0 /dev/sdc

Signed-off-by: Li Nan <linan122@xxxxxxxxxx>
---
  drivers/md/md.c | 14 +++++++-------
  1 file changed, 7 insertions(+), 7 deletions(-)
[...]

Applied to md-6.14, thanks!

I'm trying to find a fixtag, looks like following patch that is 20 years
ago. Or earlier :(

24dd469d728d ("[PATCH] md: allow a manual resync with md")

I'll move this patch to md-6.15 with this fixtag, thanks!

Kuai


Kuai

.






[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux