Skip to content

Commit aaf5a47

Browse files
lxbszidryomov
authored andcommitted
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>
1 parent 94f17c0 commit aaf5a47

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/ceph/mds_client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4303,6 +4303,7 @@ bool check_session_state(struct ceph_mds_session *s)
43034303
}
43044304
if (s->s_state == CEPH_MDS_SESSION_NEW ||
43054305
s->s_state == CEPH_MDS_SESSION_RESTARTING ||
4306+
s->s_state == CEPH_MDS_SESSION_CLOSED ||
43064307
s->s_state == CEPH_MDS_SESSION_REJECTED)
43074308
/* this mds is failed or recovering, just wait */
43084309
return false;

0 commit comments

Comments
 (0)