diff options
| -rw-r--r-- | drivers/md/raid5.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 09f07dadf404..66cd47973398 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
| @@ -5057,8 +5057,10 @@ static int run(mddev_t *mddev) | |||
| 5057 | list_for_each_entry(rdev, &mddev->disks, same_set) { | 5057 | list_for_each_entry(rdev, &mddev->disks, same_set) { |
| 5058 | if (rdev->raid_disk < 0) | 5058 | if (rdev->raid_disk < 0) |
| 5059 | continue; | 5059 | continue; |
| 5060 | if (test_bit(In_sync, &rdev->flags)) | 5060 | if (test_bit(In_sync, &rdev->flags)) { |
| 5061 | working_disks++; | 5061 | working_disks++; |
| 5062 | continue; | ||
| 5063 | } | ||
| 5062 | /* This disc is not fully in-sync. However if it | 5064 | /* This disc is not fully in-sync. However if it |
| 5063 | * just stored parity (beyond the recovery_offset), | 5065 | * just stored parity (beyond the recovery_offset), |
| 5064 | * when we don't need to be concerned about the | 5066 | * when we don't need to be concerned about the |
