Skip to content

Commit

Permalink
bad_inode_permission() is safe from RCU mode
Browse files Browse the repository at this point in the history
return -EIO; is *not* a blocking operation, thank you very much.
Nick, what the hell have you been smoking?

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jun 20, 2011
1 parent 185bf87 commit 1712c20
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/bad_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,6 @@ static int bad_inode_readlink(struct dentry *dentry, char __user *buffer,

static int bad_inode_permission(struct inode *inode, int mask, unsigned int flags)
{
if (flags & IPERM_FLAG_RCU)
return -ECHILD;

return -EIO;
}

Expand Down

0 comments on commit 1712c20

Please sign in to comment.