diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/md.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 875bced88e36..686314f070a5 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -895,10 +895,9 @@ static void super_90_sync(mddev_t *mddev, mdk_rdev_t *rdev) | |||
895 | d->raid_disk = rdev2->raid_disk; | 895 | d->raid_disk = rdev2->raid_disk; |
896 | else | 896 | else |
897 | d->raid_disk = rdev2->desc_nr; /* compatibility */ | 897 | d->raid_disk = rdev2->desc_nr; /* compatibility */ |
898 | if (test_bit(Faulty, &rdev2->flags)) { | 898 | if (test_bit(Faulty, &rdev2->flags)) |
899 | d->state = (1<<MD_DISK_FAULTY); | 899 | d->state = (1<<MD_DISK_FAULTY); |
900 | failed++; | 900 | else if (test_bit(In_sync, &rdev2->flags)) { |
901 | } else if (test_bit(In_sync, &rdev2->flags)) { | ||
902 | d->state = (1<<MD_DISK_ACTIVE); | 901 | d->state = (1<<MD_DISK_ACTIVE); |
903 | d->state |= (1<<MD_DISK_SYNC); | 902 | d->state |= (1<<MD_DISK_SYNC); |
904 | active++; | 903 | active++; |