diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2014-04-17 02:02:02 +0200 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2014-04-28 21:55:01 +0200 |
commit | fd7b95cd1b58171a0b931b2063729a032bec4ac2 (patch) | |
tree | e27db67ee63aee9803eb4cf7a24207fa58f0cdfc /fs/ceph | |
parent | ceph: clear directory's completeness when creating file (diff) | |
download | linux-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.c | 2 |
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; |