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
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;

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