rcutorture: Pull rcu_torture_updown() loop body into new function
authorPaul E. McKenney <paulmck@kernel.org>
Sun, 9 Feb 2025 12:58:36 +0000 (04:58 -0800)
committerNeeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
Wed, 25 Jun 2025 03:09:01 +0000 (08:39 +0530)
commit065de24265155fe662aa9f69a49e0697a5b3b4b5
tree3617eb5e7843dc0100eb55150eebbb8926071c26
parent1b67e031d478bf386282c7c5ff3f19cd9c1e5a39
rcutorture: Pull rcu_torture_updown() loop body into new function

This is strictly a code-movement commit, pulling that part of
the rcu_torture_updown() function's loop body that processes
one rcu_torture_one_read_state_updown structure into a new
rcu_torture_updown_one() function.  The checks for the end of the
torture test and the current structure being in use remain in the
rcu_torture_updown() function.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
kernel/rcu/rcutorture.c