summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2014-04-17 02:02:02 +0200
committerSage Weil <sage@inktank.com>2014-04-28 21:55:01 +0200
commitfd7b95cd1b58171a0b931b2063729a032bec4ac2 (patch)
treee27db67ee63aee9803eb4cf7a24207fa58f0cdfc /fs/ceph
parentceph: clear directory's completeness when creating file (diff)
downloadlinux-fd7b95cd1b58171a0b931b2063729a032bec4ac2.tar.xz
linux-fd7b95cd1b58171a0b931b2063729a032bec4ac2.zip
ceph: avoid releasing caps that are being used
To avoid releasing caps that are being used, encode_inode_release() should send implemented caps to MDS. Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/caps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index 2e5e648eb5c3..c561b628ebce 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -3261,7 +3261,7 @@ int ceph_encode_inode_release(void **p, struct inode *inode,
rel->seq = cpu_to_le32(cap->seq);
rel->issue_seq = cpu_to_le32(cap->issue_seq),
rel->mseq = cpu_to_le32(cap->mseq);
- rel->caps = cpu_to_le32(cap->issued);
+ rel->caps = cpu_to_le32(cap->implemented);
rel->wanted = cpu_to_le32(cap->mds_wanted);
rel->dname_len = 0;
rel->dname_seq = 0;