md: make recovery started by do_md_run() visible via sync_action
authorDan Williams <dan.j.williams@intel.com>
Tue, 22 Dec 2009 01:18:36 +0000 (18:18 -0700)
committerNeilBrown <neilb@suse.de>
Wed, 30 Dec 2009 04:20:31 +0000 (15:20 +1100)
commita2d79c324ac0c26ae9995a312a7731067a7f01fc
treebf9418f4fe8ab86eaf5519be6f1beb363dc64bda
parent0f9552b5dc4fe10da37fa3f4a4ca185d90fa41c9
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>
drivers/md/md.c