ceph: hold i_ceph_lock when removing caps for freeing inode
ceph_d_revalidate(, LOOKUP_RCU) may call __ceph_caps_issued_mask() on a freeing inode. Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
@@ -533,7 +533,7 @@ void ceph_destroy_inode(struct inode *inode)
|
||||
|
||||
ceph_fscache_unregister_inode_cookie(ci);
|
||||
|
||||
__ceph_remove_caps(inode);
|
||||
__ceph_remove_caps(ci);
|
||||
|
||||
if (__ceph_has_any_quota(ci))
|
||||
ceph_adjust_quota_realms_count(inode, false);
|
||||
|
Reference in New Issue
Block a user