]> git.karo-electronics.de Git - karo-tx-linux.git/commit
proc: change first_tid() to use while_each_thread() rather than next_thread()
authorOleg Nesterov <oleg@redhat.com>
Fri, 3 Jan 2014 03:10:29 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:29 +0000 (14:10 +1100)
commitf47458c3aea850823537440d1b33497d3eaceb02
tree43f16c025c06009eb6ca7a2ef8ccbef7650c9aec
parentefd654713c66d097cc463d7e66a364fca20cf5a6
proc: change first_tid() to use while_each_thread() rather than next_thread()

Rerwrite the main loop to use while_each_thread() instead of
next_thread().  We are going to fix or replace while_each_thread(),
next_thread() should be avoided whenever possible.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Sameer Nanda <snanda@chromium.org>
Cc: Sergey Dyasly <dserrg@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/base.c