rcutorture: Make srcu_lockdep.sh check reader-conflict handling
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 22 Jan 2025 23:59:30 +0000 (15:59 -0800)
committerJoel Fernandes <joelagnelf@nvidia.com>
Tue, 8 Apr 2025 18:55:38 +0000 (14:55 -0400)
commit75d8bf48a8bef2628243d0d76599c710412ba25b
treeb653e84d6459a84e7c76003b5b430df6ed8f5292
parent31b7ce3d98a57de80e255f5124f8dbdfb4be8777
rcutorture: Make srcu_lockdep.sh check reader-conflict handling

Mixing different flavors of RCU readers is forbidden, for example, you
should not use srcu_read_lock() and srcu_read_lock_nmisafe() on the same
srcu_struct structure.  There are checks for this, but these checks are
not tested on a regular basis.  This commit therefore adds such tests
to srcu_lockdep.sh.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh