Commit 1aec7036d0c2996c86ce483ca0a28f3b20807b43

Authored by Al Viro
1 parent 1d29b5a2ed

proc_sys_permission() is OK in RCU mode

nothing blocking there, since all instances of sysctl
->permissions() method are non-blocking - both of them,
that is.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Showing 1 changed file with 0 additions and 3 deletions Side-by-side Diff

fs/proc/proc_sysctl.c
... ... @@ -304,9 +304,6 @@
304 304 struct ctl_table *table;
305 305 int error;
306 306  
307   - if (flags & IPERM_FLAG_RCU)
308   - return -ECHILD;
309   -
310 307 /* Executable files are not allowed under /proc/sys/ */
311 308 if ((mask & MAY_EXEC) && S_ISREG(inode->i_mode))
312 309 return -EACCES;