From: shadow Date: Sat, 20 Jun 2009 11:59:51 +0000 (+0000) Subject: don't lose wakeup for replay_single::test_72a X-Git-Tag: v1_8_2_01~1^2~303 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=f5ce16c15839066ce114c874e3c2be68397b5488;p=fs%2Flustre-release.git don't lose wakeup for replay_single::test_72a Branch b1_8 b=19581 i=tappro i=johann --- diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 100e0ec..d18f8bc 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -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",