Commit a3078477 authored by Niu Yawei's avatar Niu Yawei Committed by Greg Kroah-Hartman

staging/lustre/ptlrpc: update imp_known_replied_xid on resend-replay

The imp_known_replied_xid should be updated when try to resend
an already replied replay request, because the xid of this replay
request could be less than current imp_known_replied_xid.
Signed-off-by: default avatarNiu Yawei <yawei.niu@intel.com>
Reviewed-on: http://review.whamcloud.com/22776
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8645Reviewed-by: default avatarAlex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: default avatarFan Yong <fan.yong@intel.com>
Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 80dd4c42
...@@ -161,8 +161,10 @@ int ptlrpc_replay_next(struct obd_import *imp, int *inflight) ...@@ -161,8 +161,10 @@ int ptlrpc_replay_next(struct obd_import *imp, int *inflight)
* unreplied list. * unreplied list.
*/ */
if (req && imp->imp_resend_replay && if (req && imp->imp_resend_replay &&
list_empty(&req->rq_unreplied_list)) list_empty(&req->rq_unreplied_list)) {
ptlrpc_add_unreplied(req); ptlrpc_add_unreplied(req);
imp->imp_known_replied_xid = ptlrpc_known_replied_xid(imp);
}
imp->imp_resend_replay = 0; imp->imp_resend_replay = 0;
spin_unlock(&imp->imp_lock); spin_unlock(&imp->imp_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment