• Dietmar Eggemann's avatar
    torture: Add lock_torture writer_fifo module parameter · 5d248bb3
    Dietmar Eggemann authored
    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: default avatarDietmar Eggemann <dietmar.eggemann@arm.com>
    [jstultz: Include header change to build, reword commit message]
    Signed-off-by: default avatarJohn Stultz <jstultz@google.com>
    Acked-by: default avatarDavidlohr Bueso <dave@stgolabs.net>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    5d248bb3
locktorture.c 34.5 KB