rcu: Document reason for rcu_all_qs() call to preempt_disable()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 3 Aug 2022 15:48:12 +0000 (08:48 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 31 Aug 2022 12:03:14 +0000 (05:03 -0700)
commit089254fd386eb6800dd7d7863f12a04ada0c35fa
tree7d21add72209e4df4a23f45d7dcdc827c2c7b92b
parent6ca0292ccf968e0132e64d6a699d36ba3e92cb81
rcu: Document reason for rcu_all_qs() call to preempt_disable()

Given that rcu_all_qs() is in non-preemptible kernels, why on earth should
it invoke preempt_disable()?  This commit adds the reason, which is to
work nicely with debugging enabled in CONFIG_PREEMPT_COUNT=y kernels.

Reported-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Reported-by: Boqun Feng <boqun.feng@gmail.com>
Reported-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_plugin.h