diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 0f1b83096425..c7aae66c6f9b 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -5996,7 +5996,8 @@ static int remove_and_add_spares(mddev_t *mddev) | |||
5996 | if (mddev->degraded) { | 5996 | if (mddev->degraded) { |
5997 | rdev_for_each(rdev, rtmp, mddev) { | 5997 | rdev_for_each(rdev, rtmp, mddev) { |
5998 | if (rdev->raid_disk >= 0 && | 5998 | if (rdev->raid_disk >= 0 && |
5999 | !test_bit(In_sync, &rdev->flags)) | 5999 | !test_bit(In_sync, &rdev->flags) && |
6000 | !test_bit(Blocked, &rdev->flags)) | ||
6000 | spares++; | 6001 | spares++; |
6001 | if (rdev->raid_disk < 0 | 6002 | if (rdev->raid_disk < 0 |
6002 | && !test_bit(Faulty, &rdev->flags)) { | 6003 | && !test_bit(Faulty, &rdev->flags)) { |