Whamcloud - gitweb
don't lose wakeup for replay_single::test_72a
authorshadow <shadow>
Sat, 20 Jun 2009 11:59:51 +0000 (11:59 +0000)
committershadow <shadow>
Sat, 20 Jun 2009 11:59:51 +0000 (11:59 +0000)
Branch b1_8
b=19581
i=tappro
i=johann

lustre/ldlm/ldlm_lib.c

index 100e0ec..d18f8bc 100644 (file)
@@ -1152,6 +1152,8 @@ static void target_send_delayed_replies(struct obd_device *obd)
 
 static void target_finish_recovery(struct obd_device *obd)
 {
+        OBD_RACE(OBD_FAIL_TGT_REPLAY_DELAY);
+
         ldlm_reprocess_all_ns(obd->obd_namespace);
         spin_lock_bh(&obd->obd_processing_task_lock);
         if (list_empty(&obd->obd_recovery_queue)) {
@@ -1738,8 +1740,6 @@ int target_queue_last_replay_reply(struct ptlrpc_request *req, int rc)
                 target_cancel_recovery_timer(obd);
                 spin_unlock_bh(&obd->obd_processing_task_lock);
 
-                OBD_RACE(OBD_FAIL_TGT_REPLAY_DELAY);
-
                 if (!delayed_done)
                         target_finish_recovery(obd);
                 CDEBUG(D_HA, "%s: recovery complete\n",