diff --git a/[refs] b/[refs] index f8c587d0d56c..783ac71ea1b9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 415e72d034c50520ddb7ff79e7d1792c1306f0c9 +refs/heads/master: 2f115882499f3e5eca33d1df07b8876cc752a1ff diff --git a/trunk/drivers/md/raid5.c b/trunk/drivers/md/raid5.c index 09f07dadf404..66cd47973398 100644 --- a/trunk/drivers/md/raid5.c +++ b/trunk/drivers/md/raid5.c @@ -5057,8 +5057,10 @@ static int run(mddev_t *mddev) list_for_each_entry(rdev, &mddev->disks, same_set) { if (rdev->raid_disk < 0) continue; - if (test_bit(In_sync, &rdev->flags)) + if (test_bit(In_sync, &rdev->flags)) { working_disks++; + continue; + } /* This disc is not fully in-sync. However if it * just stored parity (beyond the recovery_offset), * when we don't need to be concerned about the