Whamcloud - gitweb
b=22259 LBUG in target_finish_recovery())
authorDmitry Zogin <dmitry.zoguine@oracle.com>
Mon, 17 May 2010 14:54:44 +0000 (10:54 -0400)
committerJohann Lombardi <johann@sun.com>
Tue, 18 May 2010 12:41:39 +0000 (14:41 +0200)
 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

index 44666ab..039de76 100644 (file)
@@ -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.
          *