locktorture: Allow non-rtmutex lock types to be boosted
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Tue, 13 Dec 2022 20:48:38 +0000 (20:48 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 5 Jan 2023 20:10:35 +0000 (12:10 -0800)
commite01f3a1a589e314cf27bd2cb27d9c2c58e105a27
tree57c895a245db88c6286302007b122865fa6a792b
parenta6889becb05394255c80b62103677e3b095726a9
locktorture: Allow non-rtmutex lock types to be boosted

Currently RT boosting is only done for rtmutex_lock, however with proxy
execution, we also have the mutex_lock participating in priorities. To
exercise the testing better, add RT boosting to other lock testing types
as well, using a new knob (rt_boost).

Tested with boot parameters:
locktorture.torture_type=mutex_lock
locktorture.onoff_interval=1
locktorture.nwriters_stress=8
locktorture.stutter=0
locktorture.rt_boost=1
locktorture.rt_boost_factor=1
locktorture.nlocks=3

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/locking/locktorture.c