]> git.baikalelectronics.ru Git - kernel.git/commit
remove the no longer needed pid_alive() check in __task_pid_nr_ns()
authorOleg Nesterov <oleg@redhat.com>
Tue, 21 Apr 2020 10:19:04 +0000 (12:19 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 30 Apr 2020 11:40:14 +0000 (06:40 -0500)
commit41b064e5b1d4eac6d813e1247a4f4a793c5aa8b4
tree97d731499e4568dca1f10e7b8b5e29e0f94f6d0c
parent85b4d1f7a03438ace4700c8941b91fe581f918de
remove the no longer needed pid_alive() check in __task_pid_nr_ns()

Starting from ec9c565da037 ("pids: Move the pgrp and session pid pointers
from task_struct to signal_struct") __task_pid_nr_ns() doesn't dereference
task->group_leader, we can remove the pid_alive() check.

pid_nr_ns() has to check pid != NULL anyway, pid_alive() just adds the
unnecessary confusion.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
kernel/pid.c