rcutorture: Add RCU Tasks Trace and SRCU deadlock scenarios
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 24 Jan 2023 17:43:15 +0000 (09:43 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Mon, 27 Mar 2023 18:16:12 +0000 (11:16 -0700)
commit6e2044887b1d8f26a8cf0042b9a340411b227e5e
tree0009a81269f09e0065ec07dd4ece9ddf3063d66a
parentd94f12e8a46d3a8623fd77231e2dcab780368685
rcutorture: Add RCU Tasks Trace and SRCU deadlock scenarios

Add a test number 3 that creates deadlock cycles involving one RCU
Tasks Trace step and L-1 SRCU steps.  Please note that lockdep will not
detect these deadlocks until synchronize_rcu_tasks_trace() is marked
with lockdep's new "sync" annotation, which will probably not happen
until some time after these markings prove their worth on SRCU.

Please note that these tests are available only in kernels built with
CONFIG_TASKS_TRACE_RCU=y.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
kernel/rcu/rcutorture.c