Paul E. McKenney
728f23e53c
rcu: Invoke rcu_spawn_core_kthreads() from rcu_spawn_gp_kthread()
...
[ Upstream commit 8e4b1d2bc1 ]
Currently, rcu_spawn_core_kthreads() is invoked via an early_initcall(),
which works, except that rcu_spawn_gp_kthread() is also invoked via an
early_initcall() and rcu_spawn_core_kthreads() relies on adjustments to
kthread_prio that are carried out by rcu_spawn_gp_kthread(). There is
no guaranttee of ordering among early_initcall() handlers, and thus no
guarantee that kthread_prio will be properly checked and range-limited
at the time that rcu_spawn_core_kthreads() needs it.
In most cases, this bug is harmless. After all, the only reason that
rcu_spawn_gp_kthread() adjusts the value of kthread_prio is if the user
specified a nonsensical value for this boot parameter, which experience
indicates is rare.
Nevertheless, a bug is a bug. This commit therefore causes the
rcu_spawn_core_kthreads() function to be invoked directly from
rcu_spawn_gp_kthread() after any needed adjustments to kthread_prio have
been carried out.
Fixes: 48d07c04b4 ("rcu: Enable elimination of Tree-RCU softirq processing")
Signed-off-by: Paul E. McKenney <paulmck@kernel.org >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2021-07-14 16:56:33 +02:00
..
2021-07-14 16:56:26 +02:00
2021-06-16 12:01:40 +02:00
2020-04-07 10:43:42 -07:00
2021-03-04 11:38:46 +01:00
2021-06-30 08:47:29 -04:00
2021-03-17 17:06:36 +01:00
2021-06-16 12:01:45 +02:00
2021-04-14 08:41:58 +02:00
2021-05-11 14:47:17 +02:00
2021-05-26 12:06:54 +02:00
2020-10-16 11:11:19 -07:00
2021-07-14 16:56:10 +02:00
2021-03-30 14:32:04 +02:00
2021-03-04 11:38:41 +01:00
2021-07-14 16:56:33 +02:00
2021-07-14 16:56:10 +02:00
2021-07-14 16:56:01 +02:00
2021-07-14 16:55:46 +02:00
2021-05-11 14:47:37 +02:00
2020-10-16 11:11:19 -07:00
2020-07-16 12:35:15 -07:00
2020-12-30 11:54:18 +01:00
2020-12-30 11:54:18 +01:00
2020-12-30 11:54:18 +01:00
2020-08-26 09:10:39 -04:00
2020-08-17 20:26:58 -04:00
2020-08-23 17:36:59 -05:00
2020-08-04 14:20:26 -07:00
2020-07-30 11:15:58 -07:00
2020-10-13 09:17:34 -07:00
2020-08-23 17:36:59 -05:00
2020-02-04 03:05:26 +00:00
2020-06-11 15:14:36 +02:00
2020-09-01 09:58:03 +02:00
2020-11-27 00:10:39 +11:00
2021-06-23 14:42:52 +02:00
2020-04-15 11:21:54 +02:00
2021-07-14 16:55:48 +02:00
2019-05-21 11:52:39 +02:00
2021-01-30 13:55:18 +01:00
2020-04-07 10:43:42 -07:00
2020-11-19 11:58:16 -08:00
2021-07-14 16:55:50 +02:00
2021-04-07 15:00:14 +02:00
2021-06-30 08:47:29 -04:00
2020-06-06 23:42:01 +09:00
2020-10-13 09:17:34 -07:00
2020-11-02 12:14:19 -08:00
2019-07-12 11:05:40 -07:00
2020-05-28 10:54:15 +02:00
2021-03-25 09:04:18 +01:00
2020-10-25 14:51:49 -07:00
2021-01-09 13:46:24 +01:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-12-08 14:37:36 +01:00
2019-11-12 11:35:32 +01:00
2020-08-12 10:58:02 -07:00
2021-02-03 23:28:37 +01:00
2019-09-06 23:58:44 +02:00
2021-05-19 10:13:09 +02:00
2020-01-08 16:32:55 +00:00
2020-10-05 13:37:03 +02:00
2019-05-24 20:16:01 +02:00
2020-08-12 10:58:01 -07:00
2021-03-04 11:38:35 +01:00
2019-05-30 11:26:39 -07:00
2021-07-14 16:56:02 +02:00
2020-04-27 02:07:40 -04:00
2021-05-11 14:47:37 +02:00
2021-03-25 09:04:11 +01:00
2021-03-25 09:04:11 +01:00
2019-05-24 17:27:11 +02:00
2021-06-30 08:47:15 -04:00
2020-09-01 09:58:03 +02:00
2020-07-08 11:14:22 +02:00
2020-09-04 17:51:55 +10:00
2020-11-14 11:26:04 -08:00
2020-10-29 17:22:59 -05:00
2020-10-16 11:11:19 -07:00
2021-01-09 13:46:24 +01:00
2020-02-04 03:05:26 +00:00
2021-05-26 12:06:49 +02:00
2020-10-16 11:11:19 -07:00
2020-11-14 11:26:03 -08:00
2020-07-27 14:31:12 -04:00
2020-10-16 11:11:22 -07:00
2021-05-19 10:13:09 +02:00
2019-12-25 10:41:20 +01:00
2020-08-24 18:38:38 -07:00
2020-08-07 11:33:25 -07:00
2021-06-03 09:00:31 +02:00
2020-11-02 12:14:19 -08:00
2021-05-14 09:50:46 +02:00
2021-07-14 16:55:50 +02:00
2020-09-16 15:18:56 +02:00
2020-09-19 13:13:39 -07:00
2020-09-18 14:24:16 +01:00
2021-04-07 15:00:06 +02:00
2020-10-26 12:12:27 +01:00
2020-10-18 09:27:10 -07:00
2021-07-14 16:55:48 +02:00
2020-01-09 16:42:29 -07:00
2021-03-17 17:06:25 +01:00
2020-10-17 15:05:30 -06:00
2020-10-02 19:11:12 -07:00
2019-05-21 11:52:39 +02:00
2020-06-29 12:01:45 -07:00
2021-07-14 16:55:46 +02:00
2019-12-18 18:07:31 +01:00
2021-07-14 16:55:48 +02:00
2020-10-06 10:31:52 -07:00
2021-05-14 09:50:46 +02:00
2021-07-14 16:55:48 +02:00
2019-05-21 10:50:45 +02:00
2020-06-04 19:06:24 -07:00
2021-03-30 14:32:03 +02:00
2020-04-27 02:07:40 -04:00
2020-05-09 13:57:12 +02:00
2020-08-17 09:39:18 -07:00
2019-04-19 09:46:05 -07:00
2021-05-19 10:13:00 +02:00
2019-04-16 16:55:15 +02:00
2021-06-16 12:01:36 +02:00