rcu-tasks: Add a ->percpu_enqueue_lim to the rcu_tasks structure
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 9 Nov 2021 19:11:32 +0000 (11:11 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 9 Dec 2021 18:13:55 +0000 (10:13 -0800)
commit8dd593fddd630e7dcbe79e98ff5e0d0561e9ff27
treee74f6f627cad501260d77124d1ac45035167e44c
parent65b629e70489b810a108fe1155da4e41a5010534
rcu-tasks: Add a ->percpu_enqueue_lim to the rcu_tasks structure

This commit adds a ->percpu_enqueue_lim field to the rcu_tasks structure.
This field contains two to the power of the ->percpu_enqueue_shift
field, easing construction of iterators over the per-CPU queues that
might contain RCU Tasks callbacks.  Such iterators will be introduced
in later commits.

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