From: alex Date: Thu, 26 May 2005 17:05:54 +0000 (+0000) Subject: b=6398 X-Git-Tag: 1.4.10~1091 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=171fb40e692b8838da71dc400fa17278338923f1;p=fs%2Flustre-release.git b=6398 - additional assert --- diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 51037c9..72f81ee 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -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;