From 171fb40e692b8838da71dc400fa17278338923f1 Mon Sep 17 00:00:00 2001 From: alex <alex> Date: Thu, 26 May 2005 17:05:54 +0000 Subject: [PATCH] b=6398 - additional assert --- lustre/ldlm/ldlm_lib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 51037c9f8f..72f81eea4e 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; -- GitLab