Whamcloud - gitweb
- land b_hd_ver_recov
[fs/lustre-release.git] / lustre / ptlrpc / recover.c
index 4adf785..7f27502 100644 (file)
@@ -116,17 +116,12 @@ int ptlrpc_replay_next(struct obd_import *imp, int *inflight)
                    req and send it again. If, however, the last sent
                    transno has been committed then we continue replay
                    from the next request. */
-                if (imp->imp_resend_replay && 
-                    req->rq_transno == last_transno) {
-                        lustre_msg_add_flags(req->rq_reqmsg, MSG_RESENT);
-                        break;
-                }
-
                 if (req->rq_transno > last_transno) {
-                        imp->imp_last_replay_transno = req->rq_transno;
+                        if (imp->imp_resend_replay)
+                                lustre_msg_add_flags(req->rq_reqmsg,
+                                                     MSG_RESENT);
                         break;
                 }
-
                 req = NULL;
         }