History

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.

Xiubo Li committed 6 years ago

Commit aaf5a471 parent 94f17c01 file · +1 −0Browse files

Unified · Split

fs/ceph/mds_client.c+1−0
@@ -4303,6 +4303,7 @@ bool check_session_state(struct ceph_mds_session *s) · 4302 unmodified lines
4303 }4303 }
4304 if (s->s_state == CEPH_MDS_SESSION_NEW ||4304 if (s->s_state == CEPH_MDS_SESSION_NEW ||
4305 s->s_state == CEPH_MDS_SESSION_RESTARTING ||4305 s->s_state == CEPH_MDS_SESSION_RESTARTING ||
4306 s->s_state == CEPH_MDS_SESSION_CLOSED ||
4306 s->s_state == CEPH_MDS_SESSION_REJECTED)4307 s->s_state == CEPH_MDS_SESSION_REJECTED)
4307 /* this mds is failed or recovering, just wait */4308 /* this mds is failed or recovering, just wait */
4308 return false;4309 return false;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t