ceph: check the sesion state and return false in case it is closed
authorXiubo Li <xiubli@redhat.com>
Fri, 17 Jul 2020 13:25:13 +0000 (09:25 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 3 Aug 2020 09:05:26 +0000 (11:05 +0200)
commitaaf5a476201bf93bdab75d6922340516ee63f7e2
treedd6b14850a5c496e3a2d1b06c95b3383a304f0a2
parent94f17c00d6687993101372f996cf6690ec9adf83
ceph: check the sesion state and return false in case it is closed

If the session is already in closed state, we should skip it.

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