Paul E. McKenney
090eb578b9
rcuperf: Fix cleanup path for invalid perf_type strings
...
[ Upstream commit ad092c0277 ]
If the specified rcuperf.perf_type is not in the rcu_perf_init()
function's perf_ops[] array, rcuperf prints some console messages and
then invokes rcu_perf_cleanup() to set state so that a future torture
test can run. However, rcu_perf_cleanup() also attempts to end the
test that didn't actually start, and in doing so relies on the value
of cur_ops, a value that is not particularly relevant in this case.
This can result in confusing output or even follow-on failures due to
attempts to use facilities that have not been properly initialized.
This commit therefore sets the value of cur_ops to NULL in this case and
inserts a check near the beginning of rcu_perf_cleanup(), thus avoiding
relying on an irrelevant cur_ops value.
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2019-05-31 06:48:30 -07:00
..
2019-05-16 19:43:40 +02:00
2016-10-11 15:06:32 -07:00
2018-12-08 13:05:05 +01:00
2019-04-20 09:07:46 +02:00
2017-09-02 07:07:53 +02:00
2019-05-10 17:52:10 +02:00
2016-08-26 14:42:08 +02:00
2019-05-21 18:48:55 +02:00
2018-09-09 20:01:23 +02:00
2018-11-13 11:17:01 -08:00
2019-05-31 06:48:30 -07:00
2019-05-31 06:48:22 -07:00
2019-05-10 17:52:11 +02:00
2019-05-25 18:26:49 +02:00
2015-10-21 15:18:35 +01:00
2018-01-10 09:29:51 +01:00
2018-02-17 13:21:18 +01:00
2016-01-22 18:04:28 -05:00
2016-04-04 09:46:47 -04:00
2018-09-26 08:36:37 +02:00
2018-05-30 07:50:49 +02:00
2016-07-29 17:54:17 -07:00
2019-05-31 06:48:20 -07:00
2018-08-03 07:55:25 +02:00
2014-06-04 16:54:14 -07:00
2018-11-13 11:16:57 -08:00
2017-01-06 10:40:13 +01:00
2015-12-03 10:24:08 -05:00
2017-03-26 13:05:58 +02:00
2018-10-13 09:18:56 +02:00
2015-06-04 23:57:18 +02:00
2015-11-24 09:56:43 +01:00
2015-09-03 02:42:20 +02:00
2019-05-14 19:19:41 +02:00
2017-10-12 11:51:25 +02:00
2014-08-25 15:42:19 -07:00
2016-06-30 18:05:09 -05:00
2016-01-14 16:00:49 -08:00
2015-04-12 21:03:31 +02:00
2019-02-06 17:33:29 +01:00
2017-07-21 07:42:21 +02:00
2019-01-13 10:03:51 +01:00
2016-07-28 16:07:41 -07:00
2016-01-20 17:09:18 -08:00
2019-03-27 14:13:03 +09:00
2018-01-10 09:29:52 +01:00
2019-04-20 09:07:52 +02:00
2015-11-23 09:44:58 +01:00
2017-12-14 09:28:24 +01:00
2016-03-15 16:55:16 -07:00
2016-01-20 17:09:18 -08:00
2015-05-12 09:46:00 +02:00
2018-08-03 07:55:12 +02:00
2018-06-05 10:28:57 +02:00
2016-09-01 17:52:01 -07:00
2016-01-20 17:09:18 -08:00
2016-08-02 19:35:27 -04:00
2015-10-23 17:55:10 +09:00
2019-04-27 09:34:45 +02:00
2016-08-02 19:35:30 -04:00
2018-08-03 07:55:12 +02:00
2016-02-09 11:54:23 +01:00
2017-06-17 06:41:57 +02:00
2017-03-12 06:41:45 +01:00
2019-01-13 10:03:51 +01:00
2016-04-11 22:43:43 +01:00
2018-10-03 17:01:48 -07:00
2015-09-01 08:40:25 -07:00
2016-02-16 13:04:58 -05:00
2017-05-20 14:28:40 +02:00
2018-12-29 13:40:16 +01:00
2015-11-09 15:53:39 -08:00
2017-05-25 15:44:38 +02:00
2018-04-13 19:47:53 +02:00
2016-07-15 10:41:42 +02:00
2019-05-14 19:19:34 +02:00
2015-01-17 10:02:23 +13:00
2015-09-10 13:29:01 -07:00
2018-05-30 07:50:29 +02:00
2018-04-24 09:34:09 +02:00
2018-05-22 16:58:02 +02:00
2019-02-20 10:18:33 +01:00
2018-08-15 18:14:53 +02:00
2016-10-11 15:06:33 -07:00
2016-03-01 20:36:56 +01:00
2018-08-15 18:14:42 +02:00
2017-02-14 15:25:42 -08:00
2018-08-03 07:55:24 +02:00
2016-09-13 14:41:36 +02:00
2018-09-09 20:01:24 +02:00
2016-05-20 17:58:30 -07:00
2019-04-27 09:34:47 +02:00
2016-08-02 19:35:02 -04:00
2016-11-03 16:55:58 -04:00
2014-08-08 15:57:18 -07:00
2016-08-22 10:01:49 -07:00
2018-05-09 09:50:20 +02:00
2016-02-29 09:53:09 +01:00
2017-06-17 06:41:51 +02:00
2018-01-10 09:29:52 +01:00
2016-09-05 13:52:39 +02:00
2018-09-09 20:01:24 +02:00
2014-08-26 13:45:45 -04:00
2014-12-17 12:31:40 -08:00
2018-09-09 20:01:24 +02:00
2016-09-22 20:00:36 -05:00
2017-06-17 06:41:57 +02:00
2017-06-17 06:41:57 +02:00
2017-11-15 15:53:17 +01:00
2018-05-30 07:50:36 +02:00