libceph: clear con->peer_global_seq on RESETSESSION
con->peer_global_seq is part of session state. Clear it when the server tells us to reset, not just in ceph_con_close(). Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
5963c3d01c
commit
a3da057bbd
|
@ -659,11 +659,12 @@ static void ceph_con_reset_session(struct ceph_connection *con)
|
||||||
WARN_ON(con->out_msg);
|
WARN_ON(con->out_msg);
|
||||||
ceph_msg_remove_list(&con->out_queue);
|
ceph_msg_remove_list(&con->out_queue);
|
||||||
ceph_msg_remove_list(&con->out_sent);
|
ceph_msg_remove_list(&con->out_sent);
|
||||||
|
|
||||||
con->connect_seq = 0;
|
|
||||||
con->out_seq = 0;
|
con->out_seq = 0;
|
||||||
con->in_seq = 0;
|
con->in_seq = 0;
|
||||||
con->in_seq_acked = 0;
|
con->in_seq_acked = 0;
|
||||||
|
|
||||||
|
con->connect_seq = 0;
|
||||||
|
con->peer_global_seq = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -682,7 +683,6 @@ void ceph_con_close(struct ceph_connection *con)
|
||||||
|
|
||||||
ceph_con_reset_protocol(con);
|
ceph_con_reset_protocol(con);
|
||||||
ceph_con_reset_session(con);
|
ceph_con_reset_session(con);
|
||||||
con->peer_global_seq = 0;
|
|
||||||
cancel_con(con);
|
cancel_con(con);
|
||||||
mutex_unlock(&con->mutex);
|
mutex_unlock(&con->mutex);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue