Skip to content
Commit 1dd694a1 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Eric W. Biederman
Browse files

remove the no longer needed pid_alive() check in __task_pid_nr_ns()

Starting from 2c470475

 ("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: default avatarOleg Nesterov <oleg@redhat.com>
Reviewed-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent 06576edd
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