Whamcloud - gitweb
b=21587 add debug patch
authorJohann Lombardi <johann.lombardi@oracle.com>
Fri, 23 Jul 2010 22:46:54 +0000 (00:46 +0200)
committerJohann Lombardi <johann.lombardi@oracle.com>
Fri, 23 Jul 2010 22:46:54 +0000 (00:46 +0200)
i=andrew

lustre/ptlrpc/client.c

index 1125daf..a318c69 100644 (file)
@@ -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);