diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-02-18 13:43:43 +0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-01 21:14:31 -0700 |
commit | d40ee0dcc1b27792b9b2f3905a5eaf4da061dbd5 (patch) | |
tree | 6f0b0d510311f809ebe69f3d3806be48e8d8ce68 /fs/ceph/mds_client.c | |
parent | 8a034497005491dc91ed7bfd660b04923d35d0e6 (diff) | |
download | lwn-d40ee0dcc1b27792b9b2f3905a5eaf4da061dbd5.tar.gz lwn-d40ee0dcc1b27792b9b2f3905a5eaf4da061dbd5.zip |
ceph: queue cap release when trimming cap
So the client will later send cap release message to MDS
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r-- | fs/ceph/mds_client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 6e67a3501673..fb7cb05d8aba 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -1197,6 +1197,8 @@ static int trim_caps_cb(struct inode *inode, struct ceph_cap *cap, void *arg) session->s_trim_caps--; if (oissued) { /* we aren't the only cap.. just remove us */ + __queue_cap_release(session, ceph_ino(inode), cap->cap_id, + cap->mseq, cap->issue_seq); __ceph_remove_cap(cap); } else { /* try to drop referring dentries */ |