Skip to content
Snippets Groups Projects
Commit 171fb40e authored by alex's avatar alex
Browse files

b=6398

 - additional assert
parent bcdec9d3
No related branches found
No related tags found
No related merge requests found
......@@ -1402,9 +1402,10 @@ int target_start_recovery_thread(struct obd_device *obd, svc_handler_t handler)
init_completion(&trd->trd_finishing);
trd->trd_recovery_handler = handler;
if (kernel_thread(target_recovery_thread, obd, 0) > 0)
if (kernel_thread(target_recovery_thread, obd, 0) > 0) {
wait_for_completion(&trd->trd_starting);
else
LASSERT(obd->obd_recovering != 0);
} else
rc = -ECHILD;
return rc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment