Skip to content

Commit

Permalink
Allow RCU if ZFS ACL is cached
Browse files Browse the repository at this point in the history
  • Loading branch information
anodos325 committed May 4, 2023
1 parent 13ab16d commit b71d14f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/os/linux/zfs/zpl_xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,8 @@ zpl_permission(struct inode *ip, int mask)
return (0);
}

if (mask & MAY_NOT_BLOCK) {
if ((mask & MAY_NOT_BLOCK) &&
(ITOZ(ip)->z_acl_cached == NULL)) {
crfree(cr);
return (-ECHILD);
}
Expand Down

0 comments on commit b71d14f

Please sign in to comment.