Revert "pidfd_poll: report POLLHUP when pid_task() == NULL"

This reverts commit 43f0df54c9.

Change-Id: Id5c8932073dd90b073d8c8e1b7f06a9da5b5bc02
Signed-off-by: Terence Tritton <ttritton@google.com>
Bug: 352286227
This commit is contained in:
Terence Tritton
2024-08-14 19:18:16 +00:00
committed by Treehugger Robot
parent 76e9569945
commit d3ec16ca12
2 changed files with 19 additions and 12 deletions
-5
View File
@@ -355,11 +355,6 @@ static void __change_pid(struct task_struct *task, enum pid_type type,
hlist_del_rcu(&task->pid_links[type]);
*pid_ptr = new;
if (type == PIDTYPE_PID) {
WARN_ON_ONCE(pid_has_task(pid, PIDTYPE_PID));
wake_up_all(&pid->wait_pidfd);
}
for (tmp = PIDTYPE_MAX; --tmp >= 0; )
if (pid_has_task(pid, tmp))
return;