bad_inode_permission() is safe from RCU mode
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 18 Jun 2011 23:59:04 +0000 (19:59 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 20 Jun 2011 14:44:00 +0000 (10:44 -0400)
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>
fs/bad_inode.c

index 9ad2369d9e35e0651885a78dc3648ef9dbe8c412..bfcb18feb1df32b91a9db144f3f74f5873c85866 100644 (file)
@@ -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;
 }