Skip to content

Commit a56371d

Browse files
Yan, ZhengSage Weil
authored andcommitted
ceph: flush cap release queue when trimming session caps
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
1 parent 4819301 commit a56371d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎fs/ceph/mds_client.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,9 @@ static int trim_caps(struct ceph_mds_client *mdsc,
13111311
trim_caps - session->s_trim_caps);
13121312
session->s_trim_caps = 0;
13131313
}
1314+
1315+
ceph_add_cap_releases(mdsc, session);
1316+
ceph_send_cap_releases(mdsc, session);
13141317
return 0;
13151318
}
13161319

0 commit comments

Comments
 (0)