diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2014-04-17 08:02:02 +0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2014-04-28 12:55:01 -0700 |
commit | fd7b95cd1b58171a0b931b2063729a032bec4ac2 (patch) | |
tree | e27db67ee63aee9803eb4cf7a24207fa58f0cdfc /fs/ceph | |
parent | 0a8a70f96fe1bd3e07c15bb86fd247e76102398a (diff) | |
download | op-kernel-dev-fd7b95cd1b58171a0b931b2063729a032bec4ac2.zip op-kernel-dev-fd7b95cd1b58171a0b931b2063729a032bec4ac2.tar.gz |
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 2e5e648..c561b62 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; |