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)
commite2f638365dd6283b7df1cb5e82f5b2746359f062
tree0ef8c2583600ad1870fa6aea5e6c9ca49ae40358
parent2ec303113d978931ef368886c4c6bc854493e8bf
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