Skip to content

Commit 3647d2d

Browse files
committed
Merge tag 'ceph-for-6.2-rc8' of https://github.com/ceph/ceph-client
Pull ceph fix from Ilya Dryomov: "A fix for a pretty embarrassing omission in the session flush handler from Xiubo, marked for stable" * tag 'ceph-for-6.2-rc8' of https://github.com/ceph/ceph-client: ceph: flush cap releases when the session is flushed
2 parents 2971668 + e7d84c6 commit 3647d2d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fs/ceph/mds_client.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3685,6 +3685,12 @@ static void handle_session(struct ceph_mds_session *session,
36853685
break;
36863686

36873687
case CEPH_SESSION_FLUSHMSG:
3688+
/* flush cap releases */
3689+
spin_lock(&session->s_cap_lock);
3690+
if (session->s_num_cap_releases)
3691+
ceph_flush_cap_releases(mdsc, session);
3692+
spin_unlock(&session->s_cap_lock);
3693+
36883694
send_flushmsg_ack(mdsc, session, seq);
36893695
break;
36903696

0 commit comments

Comments
 (0)