Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aab53dd9 authored by Sage Weil's avatar Sage Weil
Browse files

ceph: only send cap releases when mds is OPEN|HUNG



On OPENING we shouldn't have any caps (or releases).
On CLOSING, we should wait until we succeed (and throw it all out), or
don't (and are OPEN again).
On RECONNECTING we can wait until we are OPEN.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent e01a5946
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2647,6 +2647,8 @@ static void delayed_work(struct work_struct *work)
		else
			ceph_con_keepalive(&s->s_con);
		add_cap_releases(mdsc, s, -1);
		if (s->s_state == CEPH_MDS_SESSION_OPEN ||
		    s->s_state == CEPH_MDS_SESSION_HUNG)
			send_cap_releases(mdsc, s);
		mutex_unlock(&s->s_mutex);
		ceph_put_mds_session(s);