]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/proc/array.c: change do_task_stat() to use while_each_thread()
authorOleg Nesterov <oleg@redhat.com>
Fri, 3 Jan 2014 03:10:31 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:31 +0000 (14:10 +1100)
commitf8631261bc84d93e22b69b8045106d120e03557b
tree1d75eb4974c69f46af0a8a766f90557eeb499e75
parent4287d5a8b825aaafa6ae4333e0732f63b76785e6
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
now.

__exit_signal() and complete_signal() are fine, they actually need
next_thread() logic.

This patch (of 3):

do_task_stat() can use while_each_thread(), no changes in
the compiled code.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Kees Cook <keescook@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/array.c