proc_fd_permission() is doesn't need to bail out in RCU mode
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 19 Jun 2011 00:35:23 +0000 (20:35 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 20 Jun 2011 14:44:50 +0000 (10:44 -0400)
nothing blocking except generic_permission()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/proc/base.c

index 14def991d9dd1cc1ac18faa981f135f138ebb13b..8a84210ca080e43bc10500c4e21d85e4c224f2a1 100644 (file)
@@ -2169,11 +2169,7 @@ static const struct file_operations proc_fd_operations = {
  */
 static int proc_fd_permission(struct inode *inode, int mask, unsigned int flags)
 {
-       int rv;
-
-       if (flags & IPERM_FLAG_RCU)
-               return -ECHILD;
-       rv = generic_permission(inode, mask, flags, NULL);
+       int rv = generic_permission(inode, mask, flags, NULL);
        if (rv == 0)
                return 0;
        if (task_pid(current) == proc_pid(inode))