]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rcutorture: Complain when invalid SRCU reader_flavor is specified
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 9 Jan 2025 18:14:53 +0000 (10:14 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 5 Feb 2025 15:14:40 +0000 (07:14 -0800)
commit38b43eca6665434225284c0b583a39340f4e1f37
tree9fe5ebb58f77a12fc03f91e41aa28da0ba9ee265
parent5d45bdf292e62dda86b4f0a5d456287d22a0d2b5
rcutorture: Complain when invalid SRCU reader_flavor is specified

Currently, rcutorture ignores reader_flavor bits that are not in the
SRCU_READ_FLAVOR_ALL bitmask, which could confuse rcutorture users into
believing buggy patches had been fully tested.  This commit therefore
produces a splat in this case.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
kernel/rcu/rcutorture.c