]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: notify clients if the session has already opened
authorXiubo Li <xiubli@redhat.com>
Wed, 9 Mar 2022 07:42:56 +0000 (15:42 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 5 Dec 2022 00:52:10 +0000 (08:52 +0800)
commit9284c7aaa9a973b0be1cc6585b077371d98b49b6
treea560ba348c6f269d0151b348a032855ebac755ac
parent673450460df61667b5f700de8c90de99d64738c9
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>
(cherry picked from commit f232b020fc36ba33d6ef144bdb9e607beb135763)
src/client/Client.cc
src/mds/Server.cc
src/mds/cephfs_features.cc
src/mds/cephfs_features.h