diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2022-02-02 16:34:40 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2022-02-08 10:13:22 -0800 |
commit | 00a8b4b54cd69d9f7ba1730d3b266469a778b1d7 (patch) | |
tree | 9ffd61b4b7a88dc9d1cb00cdea5e28d0f2dce0b1 /kernel/rcu/tree.c | |
parent | 2bcd18e041fc3c2ae58f41eb5e18790c7c82c674 (diff) | |
download | linux-00a8b4b54cd69d9f7ba1730d3b266469a778b1d7.tar.gz linux-00a8b4b54cd69d9f7ba1730d3b266469a778b1d7.tar.bz2 linux-00a8b4b54cd69d9f7ba1730d3b266469a778b1d7.zip |
rcu-tasks: Set ->percpu_enqueue_shift to zero upon contention
Currently, call_rcu_tasks_generic() sets ->percpu_enqueue_shift to
order_base_2(nr_cpu_ids) upon encountering sufficient contention.
This does not shift to use of non-CPU-0 callback queues as intended, but
rather continues using only CPU 0's queue. Although this does provide
some decrease in contention due to spreading work over multiple locks,
it is not the dramatic decrease that was intended.
This commit therefore makes call_rcu_tasks_generic() set
->percpu_enqueue_shift to 0.
Reported-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tree.c')
0 files changed, 0 insertions, 0 deletions