The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] proc: use pid_has_task() in proc_inode_is_dead()
@ 2026-10-17 16:00 Oleg Nesterov
  2026-10-21 14:01 ` Christian Brauner
  0 siblings, 1 reply; 2+ messages in thread
From: Oleg Nesterov @ 2026-10-17 16:00 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Christian Brauner, linux-kernel

to make it more readable and consistent.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
---
 fs/proc/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/proc/base.c b/fs/proc/base.c
index 6a39de424f62..a545796177e8 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2064,7 +2064,7 @@ static int pid_revalidate(struct inode *dir, const struct qstr *name,
 
 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);
 }
 
 int pid_delete_dentry(const struct dentry *dentry)
-- 
2.55.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] proc: use pid_has_task() in proc_inode_is_dead()
  2026-10-17 16:00 [PATCH] proc: use pid_has_task() in proc_inode_is_dead() Oleg Nesterov
@ 2026-10-21 14:01 ` Christian Brauner
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2026-10-21 14:01 UTC (permalink / raw)
  To: Andrew Morton, Oleg Nesterov; +Cc: linux-kernel

On Sat, 17 Oct 2026 18:00:57 +0200, Oleg Nesterov wrote:
> to make it more readable and consistent.

Applied to the master branch of the vfs/vfs.git tree.
Patches in the master branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: master

[1/1] proc: use pid_has_task() in proc_inode_is_dead()
      https://git.kernel.org/vfs/vfs/c/af74053005a2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-21 14:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-17 16:00 [PATCH] proc: use pid_has_task() in proc_inode_is_dead() Oleg Nesterov
2026-10-21 14:01 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox