rcu/nocb: Add checks for offloaded callback processing
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 16 Apr 2019 15:19:43 +0000 (08:19 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 13 Aug 2019 21:35:49 +0000 (14:35 -0700)
commit750d7f6a434ff4640fa825dfb1eccb44e79fb6af
tree8bb80a109d8cc342fe1a1e2d59b54e1a670e7a3f
parentce5215c1342c6c89b3c3c45fea82cddf0b013787
rcu/nocb: Add checks for offloaded callback processing

This commit is a preparatory patch for offloaded callbacks using the
same ->cblist structure used by non-offloaded callbacks.  It therefore
adds rcu_segcblist_is_offloaded() calls where they will be needed when
!rcu_segcblist_is_enabled() no longer flags the offloaded case.  It also
adds checks in rcu_do_batch() to ensure that there are no missed checks:
Currently, it should not be possible for offloaded execution to reach
rcu_do_batch(), though this will change later in this series.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/tree.c