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>
Mon, 27 Jan 2020 15:53:39 +0000 (16:53 +0100)
commit4d681c2f9141cf50261eef85b3233151c83d068b
tree9ac51383f71baaa10cf4457d0000ee97e9749585
parent9cf54563b090f52db10ae6ebdca29dcc76bc7f34
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>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
fs/ceph/mds_client.h