Commit 94116929 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

proc: smaller RCU section in ->getattr()

struct kstat is thread local.

Link: default avatarAlexey Dobriyan <>
Reviewed-by: default avatarAndrew Morton <>
Cc: Al Viro <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 3cb4e162
...@@ -1755,9 +1755,9 @@ int pid_getattr(const struct path *path, struct kstat *stat, ...@@ -1755,9 +1755,9 @@ int pid_getattr(const struct path *path, struct kstat *stat,
generic_fillattr(inode, stat); generic_fillattr(inode, stat);
stat->uid = GLOBAL_ROOT_UID; stat->uid = GLOBAL_ROOT_UID;
stat->gid = GLOBAL_ROOT_GID; stat->gid = GLOBAL_ROOT_GID;
task = pid_task(proc_pid(inode), PIDTYPE_PID); task = pid_task(proc_pid(inode), PIDTYPE_PID);
if (task) { if (task) {
if (!has_pid_permissions(pid, task, HIDEPID_INVISIBLE)) { if (!has_pid_permissions(pid, task, HIDEPID_INVISIBLE)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment