rcu/doc: Add a quick quiz to explain further why we need smp_mb__after_unlock_lock()
authorFrederic Weisbecker <frederic@kernel.org>
Thu, 10 Jun 2021 15:50:29 +0000 (17:50 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 20 Jul 2021 20:36:33 +0000 (13:36 -0700)
commitc28adacc14e70e3260063e97ebb8dd984e6f7a07
tree0b0142d4768e452a48e8458b03b5423caaa078a7
parent9984fd7e5e2f16cf867dba43ab9a4d123b91d3d3
rcu/doc: Add a quick quiz to explain further why we need smp_mb__after_unlock_lock()

Add some missing critical pieces of explanation to understand the need
for full memory barriers throughout the whole grace period state machine,
thanks to Paul's explanations.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Cc: Neeraj Upadhyay <neeraju@codeaurora.org>
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Uladzislau Rezki <urezki@gmail.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
[ paulmck: Adjust code block per Akira Yokosawa. ]
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst