]> www.infradead.org Git - linux.git/commit
rcutorture: Make rcutorture support srcu double call test
authorZqiang <qiang.zhang1211@gmail.com>
Sun, 7 Apr 2024 11:27:14 +0000 (19:27 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 4 Jun 2024 00:31:40 +0000 (17:31 -0700)
commit43b39cafbaf66cbbdace321c01701154a1c05fdc
tree541729b3e8607ad6417b65994cdb9d06bfd113eb
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
rcutorture: Make rcutorture support srcu double call test

This commit allows rcutorture to test double-call_srcu() when the
CONFIG_DEBUG_OBJECTS_RCU_HEAD Kconfig option is enabled.  The non-raw
sdp structure's ->spinlock will be acquired in call_srcu(), hence this
commit also removes the current IRQ and preemption disabling so as to
avoid lockdep complaints.

Link: https://lore.kernel.org/all/20240407112714.24460-1-qiang.zhang1211@gmail.com/
Signed-off-by: Zqiang <qiang.zhang1211@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcutorture.c