dm raid: wrong status char during resynchronization
PATCH 1/1 dm raid: wrong status char during resynchronization
From: Heinz Mauelshagen <[email protected]>
During a resynchronization, device status char 'a' is put on the raid status line for every device of a RAID set changing to 'A' (unless device failure) when completed.
Interrupting and restarting an resynchronization by reloading the table erroneously lead to status char 'A'.
Solve by avoiding superfluous MD_RECOVERY_REQUESTED flag in raid_preresume().
Signed-off-by Heinz Mauelshagen <[email protected]>
--- drivers/md/dm-raid.c | 1 - 1 file changed, 1 deletion(-)
drivers/md/dm-raid.c +0 -1
@@ -3577,7 +3577,6 @@ static int raid_preresume(struct dm_target *ti)/* Be prepared for mddev_resume() in raid_resume() */ set_bit (MD_RECOVERY_FROZEN , &mddev->recovery);if (mddev->recovery_cp && mddev->recovery_cp < MaxSector) { -set_bit (MD_RECOVERY_REQUESTED , &mddev->recovery);set_bit (MD_RECOVERY_SYNC , &mddev->recovery); mddev->resync_min = mddev->recovery_cp; }
Signature · 1 line
2.5.5