Skip to content
Snippets Groups Projects
Commit e1365b78 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Frieder Schrempf
Browse files

fs/proc: do_task_stat: use __for_each_thread()

[ Upstream commit 7904e53e ]

do/while_each_thread should be avoided when possible.

Link: https://lkml.kernel.org/r/20230909164501.GA11581@redhat.com


Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Stable-dep-of: 7601df80 ("fs/proc: do_task_stat: use sig->stats_lock to gather the threads/children stats")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 4ec1a50c
No related branches found
No related tags found
1 merge request!136🤖 Sync Bot: Update v6.1-ktn to Latest Stable Kernel (v6.1.85)
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment