summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-01-20 00:33:17 +0300
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-04-18 21:22:16 +0300
commitcc985822a0b6dbe68ad6cfa641b19c1d303ab455 (patch)
treecda37291c47761d9e0d89e6367344023870ea020 /include/linux
parent77e5849688670280b173bb9e0544e9da7b2acc36 (diff)
downloadlinux-cc985822a0b6dbe68ad6cfa641b19c1d303ab455.tar.xz
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions