From 4e09214cff21289599bb28e840b8251ad1e93147 Mon Sep 17 00:00:00 2001 From: Johann Lombardi Date: Sat, 24 Jul 2010 00:46:54 +0200 Subject: [PATCH] b=21587 add debug patch i=andrew --- lustre/ptlrpc/client.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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); -- 1.8.3.1