rcu-tasks: Abstract checking of callback lists
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 9 Nov 2021 21:37:34 +0000 (13:37 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 9 Dec 2021 18:51:27 +0000 (10:51 -0800)
commit4d1114c05467b5f421d99121bff22a9633390722
treee60e70074533baba489bf295a33e0ca45921a818
parent8dd593fddd630e7dcbe79e98ff5e0d0561e9ff27
rcu-tasks: Abstract checking of callback lists

This commit adds a rcu_tasks_need_gpcb() function that returns an
indication of whether another grace period is required, and if no grace
period is required, whether there are callbacks that need to be invoked.
The function scans all per-CPU lists currently in use.

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