rcu-tasks: Use separate ->percpu_dequeue_lim for callback dequeueing
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Nov 2021 19:46:33 +0000 (11:46 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 9 Dec 2021 18:52:11 +0000 (10:52 -0800)
commit2cee0789b458afa384c422b5969c1a338891fd33
treedea77aeb194de1e612e71dd7e64ab7218abbeca7
parentab97152f88a4d580b89f0b7cc3028ffac438216f
rcu-tasks: Use separate ->percpu_dequeue_lim for callback dequeueing

Decreasing the number of callback queues is a bit tricky because it
is necessary to handle callbacks that were queued before the number of
queues decreased, but which were not ready to invoke until afterwards.
This commit takes a first step in this direction by maintaining a separate
->percpu_dequeue_lim to control callback dequeueing, in addition to the
existing ->percpu_enqueue_lim which now controls only enqueueing.

Reported-by: Martin Lau <kafai@fb.com>
Cc: Neeraj Upadhyay <neeraj.iitr10@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tasks.h