]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit23474f261cf359d43e5ab000b013ce3297179745
tree0b0142d4768e452a48e8458b03b5423caaa078a7
parentf409f7d87745c0199faf3fd3be3906dd7970588e
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