]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
srcu: Consolidate batch checking into rcu_all_batches_empty()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 19 Jan 2017 21:33:17 +0000 (13:33 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 18 Apr 2017 18:22:16 +0000 (11:22 -0700)
commitcc985822a0b6dbe68ad6cfa641b19c1d303ab455
treecda37291c47761d9e0d89e6367344023870ea020
parent77e5849688670280b173bb9e0544e9da7b2acc36
srcu: Consolidate batch checking into rcu_all_batches_empty()

The srcu_reschedule() function invokes rcu_batch_empty() on each of
the four rcu_batch structures in the srcu_struct in question twice.
Given that this check will also be needed in cleanup_srcu_struct(), this
commit consolidates these four checks into a new rcu_all_batches_empty()
function.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/srcu.c