]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rcutorture: Make rcutorture_one_extend() check reader state
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 31 Oct 2024 00:10:22 +0000 (17:10 -0700)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Sat, 14 Dec 2024 16:04:55 +0000 (17:04 +0100)
commitec9d6356bfda69abe5f4767dd56c964127913233
tree97840d114f071580f15537038f4a975c9cac17c5
parent16338e7cb7450574ae3a210db6f35280fc44e50e
rcutorture: Make rcutorture_one_extend() check reader state

This commit adds reader-state debugging checks to a new function named
rcutorture_one_extend_check(), which is invoked before and after setting
new reader states by the existing rcutorture_one_extend() function.
These checks have proven to be rather heavyweight, reducing reproduction
rate of some failures by a factor of two.  They are therefore hidden
behind a new RCU_TORTURE_TEST_CHK_RDR_STATE Kconfig option.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Frederic Weisbecker <frederic@kernel.org>
Tested-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
kernel/rcu/Kconfig.debug
kernel/rcu/rcutorture.c