aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid1.c')
-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 4dd53fcb791a..b3cfae41f769 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1888,7 +1888,8 @@ static int run(mddev_t *mddev)
1888 1888
1889 disk = conf->mirrors + i; 1889 disk = conf->mirrors + i;
1890 1890
1891 if (!disk->rdev) { 1891 if (!disk->rdev ||
1892 !test_bit(In_sync, &disk->rdev->flags)) {
1892 disk->head_position = 0; 1893 disk->head_position = 0;
1893 mddev->degraded++; 1894 mddev->degraded++;
1894 } 1895 }