srcu: Make Tiny synchronize_srcu() check for readers
authorZqiang <qiang1.zhang@intel.com>
Wed, 9 Nov 2022 07:36:38 +0000 (15:36 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 1 Dec 2022 23:49:12 +0000 (15:49 -0800)
commit51f5f78a4f804aeb73cf12a7cbba6e5198abd908
treedd26106fc99481083dffc714542e17214fcd2c10
parent0cd7e350abc40eed5d3b60292dc102f700c88388
srcu: Make Tiny synchronize_srcu() check for readers

This commit adds lockdep checks for illegal use of synchronize_srcu()
within same-type SRCU read-side critical sections and within normal
RCU read-side critical sections.  It also makes synchronize_srcu()
be a no-op during early boot.

These changes bring Tiny synchronize_srcu() into line with both Tree
synchronize_srcu() and Tiny synchronize_rcu().

Signed-off-by: Zqiang <qiang1.zhang@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Tested-by: John Ogness <john.ogness@linutronix.de>
kernel/rcu/srcutiny.c