aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/md/raid1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 8e717bd518e7..835de7168cd3 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -2600,7 +2600,8 @@ static struct r1conf *setup_conf(struct mddev *mddev)
2600 if (!disk->rdev || 2600 if (!disk->rdev ||
2601 !test_bit(In_sync, &disk->rdev->flags)) { 2601 !test_bit(In_sync, &disk->rdev->flags)) {
2602 disk->head_position = 0; 2602 disk->head_position = 0;
2603 if (disk->rdev) 2603 if (disk->rdev &&
2604 (disk->rdev->saved_raid_disk < 0))
2604 conf->fullsync = 1; 2605 conf->fullsync = 1;
2605 } else if (conf->last_used < 0) 2606 } else if (conf->last_used < 0)
2606 /* 2607 /*