]> git.baikalelectronics.ru Git - kernel.git/commit
srcu: Crude control of expedited grace periods
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 24 Mar 2017 20:46:33 +0000 (13:46 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 18 Apr 2017 18:38:22 +0000 (11:38 -0700)
commita54a8ec900fdebf0fa1c24fbe47cb7a0e66ac763
tree04076adf019c43dbf7f31ad435aed8361a9a46b0
parent73a8efdfd8e9bd4a2cb584d849eca136c7f40f35
srcu: Crude control of expedited grace periods

SRCU's implementation of expedited grace periods has always assumed
that the SRCU instance is idle when the expedited request arrives.
This commit improves this a bit by maintaining a count of the number
of outstanding expedited requests, thus allowing prior non-expedited
grace periods accommodate these requests by shifting to expedited mode.
However, any non-expedited wait already in progress will still wait for
the full duration.

Improved control of expedited grace periods is planned, but one step
at a time.

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