提交 9f8b72b3 编写于 作者: X Xiubo Li 提交者: 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: NXiubo Li <xiubli@redhat.com>
Reviewed-by: NJeff Layton <jlayton@kernel.org>
Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
上级 893e456b
......@@ -908,7 +908,8 @@ int __ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, int touch)
ci_node);
if (!__cap_is_valid(cap))
continue;
__touch_cap(cap);
if (cap->issued & mask)
__touch_cap(cap);
}
}
return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册