]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: notify clients if the session has already opened 45307/head
authorXiubo Li <xiubli@redhat.com>
Wed, 9 Mar 2022 07:42:56 +0000 (15:42 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 18 Apr 2022 02:17:11 +0000 (10:17 +0800)
commitf232b020fc36ba33d6ef144bdb9e607beb135763
tree051decf1227dddb855d8e64fde89e7736b5690cd
parent07386467396f061d3bbe1f0d1020cc4ff156bcee
mds: notify clients if the session has already opened

If the connection was accidently closed due to the socket issue or
something else the client will try to open the opened sessions, for
now the MDS will just discard the session open request.

But the client will keep waiting the reply from the mds forever.

We need to tell the clients what has happened instead of discard it
directly. And when the client get the session open reply, it can
do what needed.

Fixes: https://tracker.ceph.com/issues/53911
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/client/Client.cc
src/mds/Server.cc
src/mds/cephfs_features.cc
src/mds/cephfs_features.h