kdb: Use newer api for tasklist scanning
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 7 Sep 2020 20:32:06 +0000 (13:32 -0700)
committerDaniel Thompson <daniel.thompson@linaro.org>
Tue, 8 Sep 2020 13:36:46 +0000 (14:36 +0100)
commitece4ceaf2eba1c0da9d6b62bc59a43be6b456548
tree57d08d26bb6fabef10f64c2119d4dccb5e69d25f
parentb18b099e04f450cdc77bec72acefcde7042bd1f3
kdb: Use newer api for tasklist scanning

This kills using the do_each_thread/while_each_thread combo to
iterate all threads and uses for_each_process_thread() instead,
maintaining semantics. while_each_thread() is ultimately racy
and deprecated;  although in this particular case there is no
concurrency so it doesn't matter. Still lets trivially get rid
of two more users.

Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Link: https://lore.kernel.org/r/20200907203206.21293-1-dave@stgolabs.net
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
kernel/debug/gdbstub.c
kernel/debug/kdb/kdb_bt.c
kernel/debug/kdb/kdb_main.c
kernel/debug/kdb/kdb_private.h