fs/proc/array.c: change do_task_stat() to use while_each_thread()
Change the remaining next_thread (ab)users to use while_each_thread().
The last user which should be changed is next_tid(), but we can't do this
__exit_signal() and complete_signal() are fine, they actually need
This patch (of 3):
do_task_stat() can use while_each_thread(), no changes in
the compiled code.
Signed-off-by: Oleg Nesterov <firstname.lastname@example.org>
Cc: KOSAKI Motohiro <email@example.com>
Cc: Al Viro <firstname.lastname@example.org>
Cc: Kees Cook <email@example.com>
Reviewed-by: Sameer Nanda <firstname.lastname@example.org>
Signed-off-by: Andrew Morton <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
1 file changed