]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: keep the session state until it is released
authorXiubo Li <xiubli@redhat.com>
Fri, 6 Dec 2019 03:35:51 +0000 (22:35 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 10 Jan 2020 10:11:06 +0000 (11:11 +0100)
commite793dda4ed92a7d8358a8d2deed81d87dbca68b5
tree966453fd1d8fee893746a2db728066afada81877
parent0417dc27e9ef956d86639aaf99d02a34fec1a15e
ceph: keep the session state until it is released

When reconnecting the session but if it is denied by the MDS due
to client was in blacklist or something else, kclient will receive
a session close reply, and we will never see the important log:

"ceph:  mds%d reconnect denied"

And with the confusing log:

"ceph:  handle_session mds0 close 0000000085804730 state ??? seq 0"

Let's keep the session state until its memories is released.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/mds_client.c
fs/ceph/mds_client.h