mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
proc: smaller RCU section in ->getattr()
struct kstat is thread local. Link: http://lkml.kernel.org/r/20180423213626.GB9043@avx2 Signed-off-by: Alexey Dobriyan <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3cb4e162e4
commit
941169298a
1 changed files with 1 additions and 1 deletions
|
|
@ -1755,9 +1755,9 @@ int pid_getattr(const struct path *path, struct kstat *stat,
|
|||
|
||||
generic_fillattr(inode, stat);
|
||||
|
||||
rcu_read_lock();
|
||||
stat->uid = GLOBAL_ROOT_UID;
|
||||
stat->gid = GLOBAL_ROOT_GID;
|
||||
rcu_read_lock();
|
||||
task = pid_task(proc_pid(inode), PIDTYPE_PID);
|
||||
if (task) {
|
||||
if (!has_pid_permissions(pid, task, HIDEPID_INVISIBLE)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue