rcu: Overlap wakeups with next expedited grace period
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 16 Mar 2016 23:47:55 +0000 (16:47 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 31 Mar 2016 20:34:11 +0000 (13:34 -0700)
commit3b5f668e715bc19610ad967ef97a7e8c55a186ec
tree1adb1e9d9d1aa5220163ae2cefccc27bd93e3db4
parentaff12cdf86e6fa891d1c30c0fad112d138bd7b10
rcu: Overlap wakeups with next expedited grace period

The current expedited grace-period implementation makes subsequent grace
periods wait on wakeups for the prior grace period.  This does not fit
the dictionary definition of "expedited", so this commit allows these two
phases to overlap.  Doing this requires four waitqueues rather than two
because tasks can now be waiting on the previous, current, and next grace
periods.  The fourth waitqueue makes the bit masking work out nicely.

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