tools/memory-model: Add smp_mb__after_srcu_read_unlock()
authorPaul E. McKenney <paulmck@kernel.org>
Sun, 29 Jan 2023 17:41:44 +0000 (09:41 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 22 Mar 2023 19:02:21 +0000 (12:02 -0700)
commit02bae7a24257947fe95fcca80c78e6cb602e94bf
tree2c8cade39b72d52e748157c284c7b47174879058
parentdd409de256333899b2632c769dc798b7db537397
tools/memory-model: Add smp_mb__after_srcu_read_unlock()

This commit adds support for smp_mb__after_srcu_read_unlock(), which,
when combined with a prior srcu_read_unlock(), implies a full memory
barrier.  No ordering is guaranteed to accesses between the two, and
placing accesses between is bad practice in any case.

Tests may be found at https://github.com/paulmckrcu/litmus in files
matching manual/kernel/C-srcu-mb-*.litmus.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/memory-model/linux-kernel.bell
tools/memory-model/linux-kernel.cat
tools/memory-model/linux-kernel.def