torture: Add a kthread-creation callback to _torture_create_kthread()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 19 Jul 2023 22:50:07 +0000 (15:50 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 14 Aug 2023 22:00:37 +0000 (15:00 -0700)
commit67d5404d274376890d6d095a10e6565854918f8e
tree6b849719a7d64178d174c1604fee9b87b6fa35e2
parente2a0b786c50cf4f0c3abfcd05888ae583c98cf25
torture: Add a kthread-creation callback to _torture_create_kthread()

This commit adds a kthread-creation callback to the
_torture_create_kthread() function, which allows callers of a new
torture_create_kthread_cb() macro to specify a function to be invoked
after the kthread is created but before it is awakened for the first time.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: kernel-team@android.com
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Acked-by: John Stultz <jstultz@google.com>
include/linux/torture.h
kernel/torture.c