Whamcloud - gitweb
b=6398
authoralex <alex>
Thu, 26 May 2005 17:05:54 +0000 (17:05 +0000)
committeralex <alex>
Thu, 26 May 2005 17:05:54 +0000 (17:05 +0000)
 - additional assert

lustre/ldlm/ldlm_lib.c

index 51037c9..72f81ee 100644 (file)
@@ -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;