Skip to content

Commit 6b41995

Browse files
author
Al Viro
committed
coda_ioctl_permission() is safe in RCU mode
return (mask & MAY_EXEC) ? -EACCES : 0; is non-blocking... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent ec12781 commit 6b41995

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎fs/coda/pioctl.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ const struct file_operations coda_ioctl_operations = {
4343
/* the coda pioctl inode ops */
4444
static int coda_ioctl_permission(struct inode *inode, int mask, unsigned int flags)
4545
{
46-
if (flags & IPERM_FLAG_RCU)
47-
return -ECHILD;
4846
return (mask & MAY_EXEC) ? -EACCES : 0;
4947
}
5048

0 commit comments

Comments
 (0)