diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-08-11 12:37:07 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-10-09 14:24:14 -0700 |
commit | c63eb17ff06dbcf73e771b9b425c531cc0a9c17b (patch) | |
tree | 3a985b57593a3ce64503837b9b55ae99e03483ad /kernel/irq_work.c | |
parent | 135bd1a230bb69a68c9808a7d25467318900b80a (diff) | |
download | talos-obmc-linux-c63eb17ff06dbcf73e771b9b425c531cc0a9c17b.tar.gz talos-obmc-linux-c63eb17ff06dbcf73e771b9b425c531cc0a9c17b.zip |
rcu: Create call_rcu_tasks() kthread at boot time
Currently the call_rcu_tasks() kthread is created upon first
invocation of call_rcu_tasks(). This has the advantage of avoiding
creation if there are never any invocations of call_rcu_tasks() and of
synchronize_rcu_tasks(), but it requires an unreliable heuristic to
determine when it is safe to create the kthread. For example, it is
not safe to create the kthread when call_rcu_tasks() is invoked with
a spinlock held, but there is no good way to detect this in !PREEMPT
kernels.
This commit therefore creates this kthread unconditionally at
core_initcall() time. If you don't want this kthread created, then
build with CONFIG_TASKS_RCU=n.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/irq_work.c')
0 files changed, 0 insertions, 0 deletions