From 276d6d5f62695b4cdb36ea155629ae4029fa1c9d Mon Sep 17 00:00:00 2001 From: Dmitry Zogin Date: Mon, 17 May 2010 10:54:44 -0400 Subject: [PATCH] b=22259 LBUG in target_finish_recovery()) Don't add requests to the recovery queue if target is no longer in recovery i=tappro i=dmitry.zogin --- lustre/ldlm/ldlm_lib.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 44666ab..039de76 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -1624,6 +1624,12 @@ int target_queue_recovery_request(struct ptlrpc_request *req, } spin_lock_bh(&obd->obd_processing_task_lock); + + if (!obd->obd_recovering) { + spin_unlock_bh(&obd->obd_processing_task_lock); + RETURN(0); + } + /* If we're processing the queue, we want don't want to queue this * message. * -- 1.8.3.1