]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
torture: Make SRCU lockdep testing use srcu_read_lock_nmisafe()
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 10 Jan 2025 22:34:28 +0000 (14:34 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 5 Feb 2025 15:14:40 +0000 (07:14 -0800)
Recent experience shows that the srcu_read_lock_nmisafe() and
srcu_read_unlock_nmisafe() functions are not sufficiently tested.
This commit therefore causes the torture.sh script's SRCU lockdep testing
to use these two functions.  This will cause these two functions to
be regularly tested by several developers (myself included) who use
torture.sh as an RCU acceptance test.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh

index 2e63ef009d59301192912ba9d9394ac4d7234c7e..2db12c5cad9c6a54130221a4b3debebd0b7af4be 100755 (executable)
@@ -49,7 +49,7 @@ do
                do
                        err=
                        val=$((d*1000+t*10+c))
-                       tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration 5s --configs "SRCU-P" --bootargs "rcutorture.test_srcu_lockdep=$val" --trust-make --datestamp "$ds/$val" > "$T/kvm.sh.out" 2>&1
+                       tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration 5s --configs "SRCU-P" --kconfig "CONFIG_FORCE_NEED_SRCU_NMI_SAFE=y" --bootargs "rcutorture.test_srcu_lockdep=$val rcutorture.reader_flavor=0x2" --trust-make --datestamp "$ds/$val" > "$T/kvm.sh.out" 2>&1
                        ret=$?
                        mv "$T/kvm.sh.out" "$RCUTORTURE/res/$ds/$val"
                        if test "$d" -ne 0 && test "$ret" -eq 0