From: Johann Lombardi Date: Fri, 23 Jul 2010 22:46:54 +0000 (+0200) Subject: b=21587 add debug patch X-Git-Tag: 1.8.4~1 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=4e09214cff21289599bb28e840b8251ad1e93147;p=fs%2Flustre-release.git b=21587 add debug patch i=andrew --- diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 1125daf..a318c69 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -2307,9 +2307,15 @@ static int ptlrpc_replay_interpret(struct ptlrpc_request *req, spin_unlock(&imp->imp_lock); } else { /* The transno had better not change over replay. */ - LASSERT(lustre_msg_get_transno(req->rq_reqmsg) == - lustre_msg_get_transno(req->rq_repmsg) || - lustre_msg_get_transno(req->rq_repmsg) == 0); + if (unlikely(lustre_msg_get_transno(req->rq_reqmsg) != + lustre_msg_get_transno(req->rq_repmsg) && + lustre_msg_get_transno(req->rq_repmsg) != 0)) { + DEBUG_REQ(D_ERROR, req, "Transno has changed over " + "replay ("LPU64"/"LPU64")\n", + lustre_msg_get_transno(req->rq_reqmsg), + lustre_msg_get_transno(req->rq_repmsg)); + LBUG(); + } } spin_lock(&imp->imp_lock);