From: Oleg Nesterov Date: Thu, 23 Jan 2014 23:55:53 +0000 (-0800) Subject: fs/proc/array.c: change do_task_stat() to use while_each_thread() X-Git-Tag: v3.14-rc1~108^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=185ee40ee7fd1ecfc6575e8cefa2331218d1eca2;p=pandora-kernel.git 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 Cc: KOSAKI Motohiro Cc: Al Viro Cc: Kees Cook Reviewed-by: Sameer Nanda Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed