Commit 62522cc4 authored by Hongchao Zhang's avatar Hongchao Zhang Committed by Greg Kroah-Hartman

staging: lustre: ptlrpc: reset imp_replay_cursor

At client side, the replay cursor using to speed up the lookup
of committed open requests in its obd_import should be resetted
for normal connection (not reconnection) during recovery.
Signed-off-by: default avatarHongchao Zhang <hongchao.zhang@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6802
Reviewed-on: http://review.whamcloud.com/17351Reviewed-by: default avatarNiu Yawei <yawei.niu@intel.com>
Reviewed-by: default avatarJinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ca42800c
...@@ -1130,6 +1130,7 @@ static int ptlrpc_connect_interpret(const struct lu_env *env, ...@@ -1130,6 +1130,7 @@ static int ptlrpc_connect_interpret(const struct lu_env *env,
imp->imp_remote_handle = imp->imp_remote_handle =
*lustre_msg_get_handle(request->rq_repmsg); *lustre_msg_get_handle(request->rq_repmsg);
imp->imp_last_replay_transno = 0; imp->imp_last_replay_transno = 0;
imp->imp_replay_cursor = &imp->imp_committed_list;
IMPORT_SET_STATE(imp, LUSTRE_IMP_REPLAY); IMPORT_SET_STATE(imp, LUSTRE_IMP_REPLAY);
} else { } else {
DEBUG_REQ(D_HA, request, "%s: evicting (reconnect/recover flags not set: %x)", DEBUG_REQ(D_HA, request, "%s: evicting (reconnect/recover flags not set: %x)",
......
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