srcu: Add contention check to call_srcu() srcu_data ->lock acquisition
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 31 Jan 2022 21:27:15 +0000 (13:27 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 3 May 2022 17:20:57 +0000 (10:20 -0700)
commitc2445d38785086422e56dcbe049b73a53b2ba81f
tree12e214052c9039d05a2dc4153e2dc8fda8f5e3a8
parenta57ffb3c6b67e59e8632f731414b792eacc6cca0
srcu: Add contention check to call_srcu() srcu_data ->lock acquisition

This commit increases the sensitivity of contention detection by adding
checks to the acquisition of the srcu_data structure's lock on the
call_srcu() code path.

Co-developed-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/srcutree.c