mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: NeilBrown <[email protected]>
This commit is contained in:
parent
0f9552b5dc
commit
a2d79c324a
1 changed files with 1 additions and 0 deletions
|
|
@ -4436,6 +4436,7 @@ static int do_md_run(mddev_t * mddev)
|
|||
if (spares && mddev->pers->sync_request) {
|
||||
mddev->recovery = 0;
|
||||
set_bit(MD_RECOVERY_RUNNING, &mddev->recovery);
|
||||
set_bit(MD_RECOVERY_RECOVER, &mddev->recovery);
|
||||
mddev->sync_thread = md_register_thread(md_do_sync,
|
||||
mddev,
|
||||
"resync");
|
||||
|
|
|
|||
Loading…
Reference in a new issue