Skip to contentSkip to conversation

dm raid: wrong status char during resynchronization

PATCH New [email protected] 1 participant 1 message Aug 3, 2016 Device mapper

lore
Share & tools
lore
#0 lore raw

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().

---
 drivers/md/dm-raid.c | 1 -
 1 file changed, 1 deletion(-)
drivers/md/dm-raid.c +0 -1
index 5ef6b5a..d20050c 100644
@@ -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