rcu-tasks: Remove second argument of rcu_read_unlock_trace_special()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 28 Jul 2021 19:28:27 +0000 (12:28 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 15 Sep 2021 18:37:50 +0000 (11:37 -0700)
commita5c071ccfa1728508f31e61213ee795e4529d0d4
tree3b236ac03d771d84b53a8850a235312c830468a5
parent18f08e758f34e6dfe0668bee51bd2af7adacf381
rcu-tasks: Remove second argument of rcu_read_unlock_trace_special()

The second argument of rcu_read_unlock_trace_special() is always zero.
When called from exit_tasks_rcu_finish_trace(), it is the constant
zero, and rcu_read_unlock_trace_special() doesn't get called from
rcu_read_unlock_trace() unless the value of local variable "nesting"
is zero because in that case the early return is taken instead.

This commit therefore removes the "nesting" argument from the
rcu_read_unlock_trace_special() function, substituting the constant
zero within that function.  This commit also adds a WARN_ON_ONCE()
to rcu_read_lock_trace_held() in case non-zeroness some day appears.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/rcupdate_trace.h
kernel/rcu/tasks.h