Skip to content

Commit 90f92b6

Browse files
oleg-nesterovbrauner
authored andcommitted
pidfd: kill the no longer needed do_notify_pidfd() in de_thread()
Now that __change_pid() does wake_up_all(&pid->wait_pidfd) we can kill do_notify_pidfd(leader) in de_thread(), it calls release_task(leader) right after that and this implies detach_pid(leader, PIDTYPE_PID). Signed-off-by: Oleg Nesterov <oleg@redhat.com> Link: https://lore.kernel.org/r/20240202131248.GA26022@redhat.com Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 43f0df5 commit 90f92b6

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

fs/exec.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,11 +1143,6 @@ static int de_thread(struct task_struct *tsk)
11431143

11441144
BUG_ON(leader->exit_state != EXIT_ZOMBIE);
11451145
leader->exit_state = EXIT_DEAD;
1146-
/*
1147-
* leader and tsk exhanged their pids, the old pid dies,
1148-
* wake up the PIDFD_THREAD waiters.
1149-
*/
1150-
do_notify_pidfd(leader);
11511146
/*
11521147
* We are going to release_task()->ptrace_unlink() silently,
11531148
* the tracer can sleep in do_wait(). EXIT_DEAD guarantees

0 commit comments

Comments
 (0)