Skip to content
  • Oleg Nesterov's avatar
    make do_notify_parent() __must_check, update the callers · 86773473
    Oleg Nesterov authored
    
    
    Change other callers of do_notify_parent() to check the value it
    returns, this makes the subsequent task_detached() unnecessary.
    Mark do_notify_parent() as __must_check.
    
    Use thread_group_leader() instead of !task_detached() to check
    if we need to notify the real parent in wait_task_zombie().
    
    Remove the stale comment in release_task(). "just for sanity" is
    no longer true, we have to set EXIT_DEAD to avoid the races with
    do_wait().
    
    Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
    Acked-by: default avatarTejun Heo <tj@kernel.org>
    86773473