Commit 9f8b72b3 authored by Xiubo Li's avatar Xiubo Li Committed by Ilya Dryomov

ceph: only touch the caps which have the subset mask requested

For the caps having no any subset mask requested we shouldn't touch
them.
Signed-off-by: default avatarXiubo Li <xiubli@redhat.com>
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 893e456b
...@@ -908,6 +908,7 @@ int __ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, int touch) ...@@ -908,6 +908,7 @@ int __ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, int touch)
ci_node); ci_node);
if (!__cap_is_valid(cap)) if (!__cap_is_valid(cap))
continue; continue;
if (cap->issued & mask)
__touch_cap(cap); __touch_cap(cap);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment