Re: [PATCH] proc: use pid_has_task() in proc_inode_is_dead()

From: Oleg Nesterov

Date: Thu Dec 03 2026 - 04:23:00 EST


On 12/02, Jiayi Zhang wrote:
>
> --- a/fs/proc/base.c
> +++ b/fs/proc/base.c
> @@ -2064,7 +2064,7 @@ out:
>
> static inline bool proc_inode_is_dead(struct inode *inode)
> {
> - return !proc_pid(inode)->tasks[PIDTYPE_PID].first;
> + return !pid_has_task(proc_pid(inode), PIDTYPE_PID);
> }

The same change is alredy in Christian' tree, see

[PATCH] proc: use pid_has_task() in proc_inode_is_dead()
https://lore.kernel.org/all/atObuVZXbl9n-zFq@xxxxxxxxxx/

Oleg.