rcu-tasks: Move RTGS_WAIT_CBS to beginning of rcu_tasks_kthread() loop
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 11 Aug 2021 16:07:44 +0000 (09:07 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 15 Sep 2021 18:37:51 +0000 (11:37 -0700)
commit0db7c32ad3160ae06f497d48a74bd46a2a35e6bf
treec4c0575368febc5006b8bca29289388ac4d22323
parentc4f113ac450afc9c7c4d2ce84a08f516dbec69b1
rcu-tasks: Move RTGS_WAIT_CBS to beginning of rcu_tasks_kthread() loop

Early in debugging, it made some sense to differentiate the first
iteration from subsequent iterations, but now this just causes confusion.
This commit therefore moves the "set_tasks_gp_state(rtp, RTGS_WAIT_CBS)"
statement to the beginning of the "for" loop in rcu_tasks_kthread().

Reported-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tasks.h