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>
Tue, 8 Feb 2022 18:20:25 +0000 (10:20 -0800)
commita263117cb5576c0e5794403f5e9037eabcc2352c
treeac67588b8abb2044ad416f427b7fad5524d607da
parent9c7ef4c30f120df15aee393b07e6b35554a06fbd
srcu: Add size-state transitioning code

This is just dead code at the moment, but it serves to prevent
spurious compiler warnings about init_srcu_struct_nodes() being unused.
This function will once again 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.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/srcutree.c