]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Report expedited grace periods at context-switch time
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sat, 30 Jun 2018 22:23:37 +0000 (15:23 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 30 Aug 2018 23:02:38 +0000 (16:02 -0700)
commitba1c64c27239373be1b3d88cf0a9ac1b10fa871f
tree213989e0ed3d4c35f86efd1f1f4248634ab80e06
parentd28139c4e96713d52a300fb9036c5be2f45e0741
rcu: Report expedited grace periods at context-switch time

This commit reduces the latency of expedited RCU grace periods by
reporting a quiescent state for the CPU at context-switch time.
In CONFIG_PREEMPT=y kernels, if the outgoing task is still within an
RCU read-side critical section (and thus still blocking some grace
period, perhaps including this expedited grace period), then that task
will already have been placed on one of the leaf rcu_node structures'
->blkd_tasks list.

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