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:Oleg Nesterov <oleg@redhat.com> Cc: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by:
Andrew 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:
Maximilian Heyne <mheyne@amazon.de> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
Please sign in to comment