diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-12-21 20:18:36 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-12-29 23:20:31 -0500 |
commit | a2d79c324ac0c26ae9995a312a7731067a7f01fc (patch) | |
tree | bf9418f4fe8ab86eaf5519be6f1beb363dc64bda /drivers/md | |
parent | 0f9552b5dc4fe10da37fa3f4a4ca185d90fa41c9 (diff) |
md: make recovery started by do_md_run() visible via sync_action
By default md_do_sync() will perform recovery if no other actions are
specified. However, action_show() relies on MD_RECOVERY_RECOVER to be
set otherwise it returns 'idle'. So, add a missing set
MD_RECOVERY_RECOVER when starting recovery.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-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"); |