Merge tag 'ceph-for-6.2-rc8' of https://github.com/ceph/ceph-client
Merge commit. Changes below are compared with the first parent: 29716680.
Changes
1 files changed · +6 −0
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| fs/ceph/mds_client.c | modified | +6 | −0 | View file |
fs/ceph/mds_client.c
View filediff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index e163f58..27a245d 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -3685,6 +3685,12 @@ static void handle_session(struct ceph_mds_session *session,
break;
case CEPH_SESSION_FLUSHMSG:
+ /* flush cap releases */
+ spin_lock(&session->s_cap_lock);
+ if (session->s_num_cap_releases)
+ ceph_flush_cap_releases(mdsc, session);
+ spin_unlock(&session->s_cap_lock);
+
send_flushmsg_ack(mdsc, session, seq);
break;