fs/proc: do_task_stat: use __for_each_thread()
authorOleg Nesterov <oleg@redhat.com>
Sat, 9 Sep 2023 16:45:01 +0000 (18:45 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Oct 2023 17:41:57 +0000 (10:41 -0700)
commit7904e53ed5a20fc678c01d5d1b07ec486425bb6a
treedaa45f2a8cdbf8b2697ba0291e93a3bb634d5420
parenta9d56ce053dacf6e4171c984e2c6e689f10e94bd
fs/proc: do_task_stat: use __for_each_thread()

do/while_each_thread should be avoided when possible.

Link: https://lkml.kernel.org/r/20230909164501.GA11581@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/array.c