Skip to content

Commit

Permalink
proc_fd_permission() is doesn't need to bail out in RCU mode
Browse files Browse the repository at this point in the history
nothing blocking except generic_permission()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jun 20, 2011
1 parent 730e908 commit cf12791
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit cf12791

Please sign in to comment.