do_io_accounting: use __for_each_thread()
authorOleg Nesterov <oleg@redhat.com>
Mon, 23 Oct 2023 15:33:43 +0000 (17:33 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 1 Nov 2023 19:46:58 +0000 (12:46 -0700)
commit2320222067887f58dc9d7dba2e3ec285d02d45f3
treed5d84dca23bba22af338ca7d05d0ef4f89bef206
parent873ed7222c17cfd3cba1b1147552171581ffa6ca
do_io_accounting: use __for_each_thread()

Rather than while_each_thread() which should be avoided when possible.

This makes the code more clear and allows the next change.

Link: https://lkml.kernel.org/r/20231023153343.GA4629@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/base.c