Whamcloud - gitweb
LU-8645 ptlrpc: update imp_known_replied_xid on resend-replay
[fs/lustre-release.git] / lustre / ptlrpc / recover.c
index 4b5568a..02f79d0 100644 (file)
@@ -163,8 +163,10 @@ int ptlrpc_replay_next(struct obd_import *imp, int *inflight)
        /* The resend replay request may have been removed from the
         * unreplied list. */
        if (req != NULL && imp->imp_resend_replay &&
-           list_empty(&req->rq_unreplied_list))
+           list_empty(&req->rq_unreplied_list)) {
                ptlrpc_add_unreplied(req);
+               imp->imp_known_replied_xid = ptlrpc_known_replied_xid(imp);
+       }
 
        imp->imp_resend_replay = 0;
        spin_unlock(&imp->imp_lock);