]> git.baikalelectronics.ru Git - kernel.git/commit
srcu: Add size-state transitioning code
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 24 Jan 2022 23:41:32 +0000 (15:41 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 11 Apr 2022 22:31:02 +0000 (15:31 -0700)
commite50168b7813c68937282bf8047087e49079c8bbb
tree0ef8c2583600ad1870fa6aea5e6c9ca49ae40358
parent263c35402ea3b00764bf37a2e5807a69d434c05d
srcu: Add size-state transitioning code

This is just dead code at the moment, and will be used once
the state-transition code is activated.

Because srcu_barrier() must be aware of transition before call_srcu(), the
state machine waits for an SRCU grace period before callbacks are queued
to the non-CPU-0 queues.  This requres that portions of srcu_barrier()
be enclosed in an SRCU read-side critical section.

Co-developed-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/srcutree.c