From f5ce16c15839066ce114c874e3c2be68397b5488 Mon Sep 17 00:00:00 2001 From: shadow Date: Sat, 20 Jun 2009 11:59:51 +0000 Subject: [PATCH] don't lose wakeup for replay_single::test_72a Branch b1_8 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 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", -- 1.8.3.1