aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/root.c
diff options
context:
space:
mode:
authorEric W. Biederman <[email protected]>2020-02-25 00:53:09 +0000
committerEric W. Biederman <[email protected]>2020-04-24 22:16:35 +0000
commit3147d8aaa03eac0e68742621e8f05323459aa37d (patch)
tree5bc54e45c09ee095940960592ad9cdad794f91ec /fs/proc/root.c
parentproc: modernize proc to support multiple private instances (diff)
downloadkernel-3147d8aaa03eac0e68742621e8f05323459aa37d.tar.gz
kernel-3147d8aaa03eac0e68742621e8f05323459aa37d.zip
proc: Use PIDTYPE_TGID in next_tgid
Combine the pid_task and thes test has_group_leader_pid into a single dereference by using pid_task(PIDTYPE_TGID). This makes the code simpler and proof against needing to even think about any shenanigans that de_thread might get up to. Acked-by: Oleg Nesterov <[email protected]> Signed-off-by: "Eric W. Biederman" <[email protected]>
Diffstat (limited to 'fs/proc/root.c')
0 files changed, 0 insertions, 0 deletions