* [PATCH] dm raid: wrong status char during resynchronization
@ 2016-08-03 20:57 heinzm
0 siblings, 0 replies; only message in thread
From: heinzm @ 2016-08-03 20:57 UTC (permalink / raw)
To: dm-devel; +Cc: Heinz Mauelshagen
From: Heinz Mauelshagen <heinzm@redhat.com>
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 <heinzm@redhat.com>
---
drivers/md/dm-raid.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
index 5ef6b5a..d20050c 100644
--- a/drivers/md/dm-raid.c
+++ b/drivers/md/dm-raid.c
@@ -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;
}
--
2.5.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-03 20:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-03 20:57 [PATCH] dm raid: wrong status char during resynchronization heinzm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).