Skip to content
Commit d95ef751 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Sasha Levin
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 9793a3bb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment