aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index affeaefd4033..2ca18770575f 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -2015,7 +2015,8 @@ static int run(mddev_t *mddev)
2015 2015
2016 disk = conf->mirrors + i; 2016 disk = conf->mirrors + i;
2017 2017
2018 if (!disk->rdev) { 2018 if (!disk->rdev ||
2019 !test_bit(In_sync, &rdev->flags)) {
2019 disk->head_position = 0; 2020 disk->head_position = 0;
2020 mddev->degraded++; 2021 mddev->degraded++;
2021 } 2022 }