Commit 4b10a3b
md: ensure resync is prioritized over recovery
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
Fixes: 24dd469 ("[PATCH] md: allow a manual resync with md")
Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/linux-raid/20250213131530.3698600-1-linan666@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>1 parent a052bfa commit 4b10a3b
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9460 | 9460 | | |
9461 | 9461 | | |
9462 | 9462 | | |
| 9463 | + | |
| 9464 | + | |
| 9465 | + | |
| 9466 | + | |
| 9467 | + | |
| 9468 | + | |
| 9469 | + | |
9463 | 9470 | | |
9464 | 9471 | | |
9465 | 9472 | | |
| |||
9476 | 9483 | | |
9477 | 9484 | | |
9478 | 9485 | | |
9479 | | - | |
9480 | | - | |
9481 | | - | |
9482 | | - | |
9483 | | - | |
9484 | | - | |
9485 | | - | |
9486 | 9486 | | |
9487 | 9487 | | |
9488 | 9488 | | |
| |||
0 commit comments