srcu: Push srcu_advance_batches() fastpath into common case
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 10 Mar 2017 00:16:42 +0000 (16:16 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 18 Apr 2017 18:38:19 +0000 (11:38 -0700)
commitc6e56f593ac2df436700527c3488d4ed224c3acf
tree0d323b1c103b240ab4258e6f0a3f4cdbee18b2fb
parentf010ed82c7ba8b30f30872800100ad6b6efe2a6a
srcu: Push srcu_advance_batches() fastpath into common case

This commit simplifies the SRCU state machine by pushing the
srcu_advance_batches() idle-SRCU fastpath into the common case.  This is
done by giving srcu_reschedule() a delay parameter, which is zero in
the call from srcu_advance_batches().

This commit is a step towards numbering callbacks in order to
efficiently handle per-CPU callback lists.

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