diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index d2aff7209070..fd55f2a555b1 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -4436,6 +4436,7 @@ static int do_md_run(mddev_t * mddev) | |||
4436 | if (spares && mddev->pers->sync_request) { | 4436 | if (spares && mddev->pers->sync_request) { |
4437 | mddev->recovery = 0; | 4437 | mddev->recovery = 0; |
4438 | set_bit(MD_RECOVERY_RUNNING, &mddev->recovery); | 4438 | set_bit(MD_RECOVERY_RUNNING, &mddev->recovery); |
4439 | set_bit(MD_RECOVERY_RECOVER, &mddev->recovery); | ||
4439 | mddev->sync_thread = md_register_thread(md_do_sync, | 4440 | mddev->sync_thread = md_register_thread(md_do_sync, |
4440 | mddev, | 4441 | mddev, |
4441 | "resync"); | 4442 | "resync"); |