Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2f2577d authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

torture: Eliminate torture_runnable and perf_runnable



The purpose of torture_runnable is to allow rcutorture and locktorture
to be started and stopped via sysfs when they are built into the kernel
(as in not compiled as loadable modules).  However, the 0444 permissions
for both instances of torture_runnable prevent this use case from ever
being put into practice.  Given that there have been no complaints
about this deficiency, it is reasonable to conclude that no one actually
makes use of this sysfs capability.  The perf_runnable module parameter
for rcuperf is in the same situation.

This commit therefore removes both torture_runnable instances as well
as perf_runnable.

Reported-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 4ced3314
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -2049,9 +2049,6 @@
			This tests the locking primitive's ability to
			transition abruptly to and from idle.

	locktorture.torture_runnable= [BOOT]
			Start locktorture running at boot time.

	locktorture.torture_type= [KNL]
			Specify the locking implementation to test.

@@ -3459,9 +3456,6 @@
			the same as for rcuperf.nreaders.
			N, where N is the number of CPUs

	rcuperf.perf_runnable= [BOOT]
			Start rcuperf running at boot time.

	rcuperf.perf_type= [KNL]
			Specify the RCU implementation to test.

@@ -3595,9 +3589,6 @@
			Test RCU's dyntick-idle handling.  See also the
			rcutorture.shuffle_interval parameter.

	rcutorture.torture_runnable= [BOOT]
			Start rcutorture running at boot time.

	rcutorture.torture_type= [KNL]
			Specify the RCU implementation to test.

+0 −5
Original line number Diff line number Diff line
@@ -57,11 +57,6 @@ torture_type Type of lock to torture. By default, only spinlocks will

		     o "rwsem_lock": read/write down() and up() semaphore pairs.

torture_runnable  Start locktorture at boot time in the case where the
		  module is built into the kernel, otherwise wait for
		  torture_runnable to be set via sysfs before starting.
		  By default it will begin once the module is loaded.


	    ** Torture-framework (RCU + locking) **

+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ void stutter_wait(const char *title);
int torture_stutter_init(int s);

/* Initialization and cleanup. */
bool torture_init_begin(char *ttype, bool v, int *runnable);
bool torture_init_begin(char *ttype, bool v);
void torture_init_end(void);
bool torture_cleanup_begin(void);
void torture_cleanup_end(void);
+1 −5
Original line number Diff line number Diff line
@@ -77,10 +77,6 @@ struct lock_stress_stats {
	long n_lock_acquired;
};

int torture_runnable = IS_ENABLED(MODULE);
module_param(torture_runnable, int, 0444);
MODULE_PARM_DESC(torture_runnable, "Start locktorture at module init");

/* Forward reference. */
static void lock_torture_cleanup(void);

@@ -866,7 +862,7 @@ static int __init lock_torture_init(void)
		&percpu_rwsem_lock_ops,
	};

	if (!torture_init_begin(torture_type, verbose, &torture_runnable))
	if (!torture_init_begin(torture_type, verbose))
		return -EBUSY;

	/* Process args and tell the world that the torturer is on the job. */
+1 −5
Original line number Diff line number Diff line
@@ -106,10 +106,6 @@ static int rcu_perf_writer_state;
#define MAX_MEAS 10000
#define MIN_MEAS 100

static int perf_runnable = IS_ENABLED(MODULE);
module_param(perf_runnable, int, 0444);
MODULE_PARM_DESC(perf_runnable, "Start rcuperf at boot");

/*
 * Operations vector for selecting different types of tests.
 */
@@ -646,7 +642,7 @@ rcu_perf_init(void)
		&tasks_ops,
	};

	if (!torture_init_begin(perf_type, verbose, &perf_runnable))
	if (!torture_init_begin(perf_type, verbose))
		return -EBUSY;

	/* Process args and tell the world that the perf'er is on the job. */
Loading