lkml.org 
[lkml]   [2020]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] remove the no longer needed pid_alive() check in __task_pid_nr_ns()
    On Tue, Apr 21, 2020 at 12:19:04PM +0200, Oleg Nesterov wrote:
    > Starting from 2c4704756cab ("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>
    > ---

    Acked-by: Christian Brauner <christian.brauner@ubuntu.com>

    \
     
     \ /
      Last update: 2020-04-21 12:51    [W:3.932 / U:0.180 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site