|
@@ -5057,8 +5057,10 @@ static int run(mddev_t *mddev)
|
|
list_for_each_entry(rdev, &mddev->disks, same_set) {
|
|
list_for_each_entry(rdev, &mddev->disks, same_set) {
|
|
if (rdev->raid_disk < 0)
|
|
if (rdev->raid_disk < 0)
|
|
continue;
|
|
continue;
|
|
- if (test_bit(In_sync, &rdev->flags))
|
|
|
|
|
|
+ if (test_bit(In_sync, &rdev->flags)) {
|
|
working_disks++;
|
|
working_disks++;
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
/* This disc is not fully in-sync. However if it
|
|
/* This disc is not fully in-sync. However if it
|
|
* just stored parity (beyond the recovery_offset),
|
|
* just stored parity (beyond the recovery_offset),
|
|
* when we don't need to be concerned about the
|
|
* when we don't need to be concerned about the
|