Skip to content

Commit

Permalink
coda_ioctl_permission() is safe in RCU mode
Browse files Browse the repository at this point in the history
return (mask & MAY_EXEC) ? -EACCES : 0; is non-blocking...

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jun 20, 2011
1 parent ec12781 commit 6b41995
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/coda/pioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ const struct file_operations coda_ioctl_operations = {
/* the coda pioctl inode ops */
static int coda_ioctl_permission(struct inode *inode, int mask, unsigned int flags)
{
if (flags & IPERM_FLAG_RCU)
return -ECHILD;
return (mask & MAY_EXEC) ? -EACCES : 0;
}

Expand Down

0 comments on commit 6b41995

Please sign in to comment.