ceph: remove incorrect session state check
authorXiubo Li <xiubli@redhat.com>
Tue, 22 Mar 2022 03:03:13 +0000 (11:03 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 25 Apr 2022 08:45:15 +0000 (10:45 +0200)
commit396ea1681892211dd3fbc1a58bfc2c2c971433e3
tree7be9891f5ff91d2daaa1e7015d264d4d734cf372
parent7f47f7f3b3c33fd2b4a662cd43cd1af96e1a297e
ceph: remove incorrect session state check

Once the session is opened the s->s_ttl will be set, and when receiving
a new mdsmap and the MDS map is changed, it will be possibly will close
some sessions and open new ones. And then some sessions will be in
CLOSING state evening without unmounting.

URL: https://tracker.ceph.com/issues/54979
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