From: Xiubo Li Date: Fri, 17 Jul 2020 13:25:13 +0000 (-0400) Subject: ceph: check the sesion state and return false in case it is closed X-Git-Tag: v5.10.7~1855^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aaf5a476201bf93bdab75d6922340516ee63f7e2;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Jeff Layton Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 9a09d12..ef8a117 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -4303,6 +4303,7 @@ bool check_session_state(struct ceph_mds_session *s) } if (s->s_state == CEPH_MDS_SESSION_NEW || s->s_state == CEPH_MDS_SESSION_RESTARTING || + s->s_state == CEPH_MDS_SESSION_CLOSED || s->s_state == CEPH_MDS_SESSION_REJECTED) /* this mds is failed or recovering, just wait */ return false;