Commit f82f7360 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Bosser Yeh
Browse files

UPSTREAM: fs/proc: do_task_stat: use __for_each_thread()

commit 7904e53e upstream.

do/while_each_thread should be avoided when possible.

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



Bug: 444301755
Bug: 445621665
Change-Id: I27f48521766bd3b2f11ed06b67367e3faabbba2f
(cherry picked from commit 87ed20fb)
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")
Cc: stable@vger.kernel.org
[ mheyne: adjusted context ]
Signed-off-by: default avatarMaximilian Heyne <mheyne@amazon.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d09ef2e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment