summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2014-04-01 14:34:56 +0200
committerSage Weil <sage@inktank.com>2014-04-05 06:08:26 +0200
commita56371d9d920799ebb88c196aa018e76fc46554f (patch)
tree96fa5f4c186a234c3a4442bbd2cdc3a8b98800bc /fs/ceph
parentceph: don't grabs open file reference for aborted request (diff)
downloadlinux-a56371d9d920799ebb88c196aa018e76fc46554f.tar.xz
linux-a56371d9d920799ebb88c196aa018e76fc46554f.zip
ceph: flush cap release queue when trimming session caps
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/mds_client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 19fbfc496137..2b4d093d0563 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;
}