Skip to content

Commit 2a034ec

Browse files
mauelshasnitm
authored andcommitted
dm raid: fix use of wrong status char during resynchronization
During a resynchronization, device status char 'a' is output on the raid status line for every device of a RAID set. It changes from 'a' to 'A' (unless device failure) when the resynchronization completes. Interrupting and restarting a resynchronization, by reloading the DM table, erroneously lead to status char 'A'. Fix this by avoiding setting the MD_RECOVERY_REQUESTED flag in raid_preresume(). Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
1 parent b2a4872 commit 2a034ec

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/md/dm-raid.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3578,7 +3578,6 @@ static int raid_preresume(struct dm_target *ti)
35783578
/* Be prepared for mddev_resume() in raid_resume() */
35793579
set_bit(MD_RECOVERY_FROZEN, &mddev->recovery);
35803580
if (mddev->recovery_cp && mddev->recovery_cp < MaxSector) {
3581-
set_bit(MD_RECOVERY_REQUESTED, &mddev->recovery);
35823581
set_bit(MD_RECOVERY_SYNC, &mddev->recovery);
35833582
mddev->resync_min = mddev->recovery_cp;
35843583
}

0 commit comments

Comments
 (0)