]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: kill session when mds do ms_handle_remote_reset 44638/head
authorIvanGuan <yunfei.guan@xtaotech.com>
Tue, 18 Jan 2022 13:01:59 +0000 (21:01 +0800)
committerIvanGuan <yunfei.guan@xtaotech.com>
Tue, 18 Jan 2022 13:01:59 +0000 (21:01 +0800)
commit3651deb4e0b0c102adcaddce79ee4e053f033418
tree673e6c253d2e4f45962b85d3a3ef0e77549b0ac1
parent51a347456dead2c327a08926a7042bfa685b397c
mds: kill session when mds do ms_handle_remote_reset

if the mds decide to reuse the old connection it will
do reset_session and should  also kill the session
which are open state in MDSDaemon::ms_handle_remote_reset
to prevent the situation client session is stuck in
opening state and never has chance to becaome open.

the root cause is client missed the request_open
reply but the mds session has become open already.
so we should kill the session in mds side and let
mds recreate the session when received the connect
request from client.

Fixes: http://tracker.ceph.com/issues/53911
Signed-off-by: YunfeiGuan <yunfeiguan@xtaotech.com>
src/mds/MDSDaemon.cc