diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 19fbfc49613757b6033ca4bed7c86bc0e5cf4096..2b4d093d056319424369f01321c710f2c9d27185 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -1311,6 +1311,9 @@ static int trim_caps(struct ceph_mds_client *mdsc, trim_caps - session->s_trim_caps); session->s_trim_caps = 0; } + + ceph_add_cap_releases(mdsc, session); + ceph_send_cap_releases(mdsc, session); return 0; }