torture: Add lock_torture writer_fifo module parameter
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Fri, 2 Jun 2023 22:02:10 +0000 (22:02 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 14 Aug 2023 22:01:07 +0000 (15:01 -0700)
commit5d248bb39fe1388943acb6510f8f48fa5570e0ec
tree57c9dfa277a5cf58bfd9f4ef16daf220dc09a417
parent67d5404d274376890d6d095a10e6565854918f8e
torture: Add lock_torture writer_fifo module parameter

This commit adds a module parameter that causes the locktorture writer
to run at real-time priority.

To use it:
insmod /lib/modules/torture.ko random_shuffle=1
insmod /lib/modules/locktorture.ko torture_type=mutex_lock rt_boost=1 rt_boost_factor=50 nested_locks=3 writer_fifo=1
^^^^^^^^^^^^^

A predecessor to this patch has been helpful to uncover issues with the
proxy-execution series.

[ paulmck: Remove locktorture-specific code from kernel/torture.c. ]

Cc: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: kernel-team@android.com
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
[jstultz: Include header change to build, reword commit message]
Signed-off-by: John Stultz <jstultz@google.com>
Acked-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
kernel/locking/locktorture.c
kernel/torture.c