torture: Share torture_random_state with torture_shuffle_tasks()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 19 Jul 2023 19:03:20 +0000 (12:03 -0700)
committerFrederic Weisbecker <frederic@kernel.org>
Sun, 24 Sep 2023 15:24:01 +0000 (17:24 +0200)
commitd0b654e19a83840e11d6ba87ea0be30e5fae343a
tree239a2da01cbb7e84227d3e7eed3e04fa8eff38d6
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
torture: Share torture_random_state with torture_shuffle_tasks()

Both torture_shuffle_tasks() and its caller torture_shuffle()
define a torture_random_state structure.  This is suboptimal given
that torture_shuffle_tasks() runs for a very short period of time.
This commit therefore causes torture_shuffle() to pass a pointer to its
torture_random_state structure down to torture_shuffle_tasks().

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
kernel/torture.c