srcu: Early test SRCU polling start
authorFrederic Weisbecker <frederic@kernel.org>
Wed, 14 Apr 2021 13:24:13 +0000 (15:24 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 12 May 2021 19:12:33 +0000 (12:12 -0700)
commit0a580fa65cfa08a40af1a0a2cf73d100863e4981
tree3f3137481a8ff1d4a367b0bfcd4e042b890d4195
parentb5befe842e6612cf894cf4a199924ee872d8b7d8
srcu: Early test SRCU polling start

Place an early call to start_poll_synchronize_srcu() before the invocation
of call_srcu() on the same srcu_struct structure.

After the later call to srcu_barrier(), the completion of the
first grace period should be visible to a subsequent invocation of
poll_state_synchronize_srcu(), and if not, warn.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Cc: Neeraj Upadhyay <neeraju@codeaurora.org>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Uladzislau Rezki <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/update.c