From: tappro Date: Fri, 18 Aug 2006 07:19:50 +0000 (+0000) Subject: fix silly defect, thanks Wangdi. X-Git-Tag: v1_8_0_110~486^2~1141 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a7a432c86c7ab771c70411f3c80c605e1052e594;p=fs%2Flustre-release.git fix silly defect, thanks Wangdi. --- diff --git a/lustre/mdt/mdt_recovery.c b/lustre/mdt/mdt_recovery.c index ab0c55a..4313339 100644 --- a/lustre/mdt/mdt_recovery.c +++ b/lustre/mdt/mdt_recovery.c @@ -586,10 +586,10 @@ static int mdt_txn_commit_cb(const struct lu_context *ctx, spin_lock(&mdt->mdt_transno_lock); if (txi->txi_transno > mdt->mdt_last_committed) { mdt->mdt_last_committed = txi->txi_transno; - spin_lock(&mdt->mdt_transno_lock); + spin_unlock(&mdt->mdt_transno_lock); ptlrpc_commit_replies (obd); } else - spin_lock(&mdt->mdt_transno_lock); + spin_unlock(&mdt->mdt_transno_lock); CDEBUG(D_HA, "%s: transno "LPD64" committed\n", obd->obd_name, txi->txi_transno);