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>
This commit is contained in:
parent
0a8a70f96f
commit
fd7b95cd1b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user