From a142a8728343b06d6e7bba7a1696c7af9a8ad551 Mon Sep 17 00:00:00 2001 From: shadow Date: Sat, 20 Jun 2009 11:58:25 +0000 Subject: [PATCH] don't lose wakeup for replay_single::test_72a Branch b_release_1_8_1 b=19581 i=tappro i=johann --- lustre/ldlm/ldlm_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 4988a20..eca2fd3 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -1145,6 +1145,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)) { @@ -1731,8 +1733,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", -- 1.8.3.1