]> git.baikalelectronics.ru Git - kernel.git/commit
proc: Use PIDTYPE_TGID in next_tgid
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 25 Feb 2020 00:53:09 +0000 (18:53 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 24 Apr 2020 22:16:35 +0000 (17:16 -0500)
commit18b4f1d3d36f3f537f8c57665105e8b2b0e707fc
tree5bc54e45c09ee095940960592ad9cdad794f91ec
parent5d284807d5e7525dd9565702aa80fd39c802eb77
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 <oleg@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/proc/base.c