diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2020-09-07 23:32:06 +0300 |
---|---|---|
committer | Daniel Thompson <daniel.thompson@linaro.org> | 2020-09-08 16:36:46 +0300 |
commit | ece4ceaf2eba1c0da9d6b62bc59a43be6b456548 (patch) | |
tree | 57d08d26bb6fabef10f64c2119d4dccb5e69d25f /kernel/debug/kdb/kdb_private.h | |
parent | b18b099e04f450cdc77bec72acefcde7042bd1f3 (diff) | |
download | linux-ece4ceaf2eba1c0da9d6b62bc59a43be6b456548.tar.xz |
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>
Diffstat (limited to 'kernel/debug/kdb/kdb_private.h')
-rw-r--r-- | kernel/debug/kdb/kdb_private.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/debug/kdb/kdb_private.h b/kernel/debug/kdb/kdb_private.h index 2e296e4a234c..a4281fb99299 100644 --- a/kernel/debug/kdb/kdb_private.h +++ b/kernel/debug/kdb/kdb_private.h @@ -230,10 +230,6 @@ extern struct task_struct *kdb_curr_task(int); #define kdb_task_has_cpu(p) (task_curr(p)) -/* Simplify coexistence with NPTL */ -#define kdb_do_each_thread(g, p) do_each_thread(g, p) -#define kdb_while_each_thread(g, p) while_each_thread(g, p) - #define GFP_KDB (in_interrupt() ? GFP_ATOMIC : GFP_KERNEL) extern void *debug_kmalloc(size_t size, gfp_t flags); |