|
@@ -1782,6 +1782,7 @@ static int raid10_spare_active(struct mddev *mddev)
|
|
|
}
|
|
}
|
|
|
sysfs_notify_dirent_safe(tmp->replacement->sysfs_state);
|
|
sysfs_notify_dirent_safe(tmp->replacement->sysfs_state);
|
|
|
} else if (tmp->rdev
|
|
} else if (tmp->rdev
|
|
|
|
|
+ && tmp->rdev->recovery_offset == MaxSector
|
|
|
&& !test_bit(Faulty, &tmp->rdev->flags)
|
|
&& !test_bit(Faulty, &tmp->rdev->flags)
|
|
|
&& !test_and_set_bit(In_sync, &tmp->rdev->flags)) {
|
|
&& !test_and_set_bit(In_sync, &tmp->rdev->flags)) {
|
|
|
count++;
|
|
count++;
|