tools/memory-model: litmus: Add two tests for unlock(A)+lock(B) ordering
authorBoqun Feng <boqun.feng@gmail.com>
Mon, 25 Oct 2021 14:54:16 +0000 (22:54 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 1 Dec 2021 01:47:08 +0000 (17:47 -0800)
commitc438b7d860b4c1acb4ebff6d8d946d593ca5fe1e
tree5e86d66c4635958dbc2b9ee277e6234a9f055fc1
parentb47c05ecf60bd8743ad8c0ee510d3e1c060529d7
tools/memory-model: litmus: Add two tests for unlock(A)+lock(B) ordering

The memory model has been updated to provide a stronger ordering
guarantee for unlock(A)+lock(B) on the same CPU/thread. Therefore add
two litmus tests describing this new guarantee, these tests are simple
yet can clearly show the usage of the new guarantee, also they can serve
as the self tests for the modification in the model.

Co-developed-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/memory-model/litmus-tests/LB+unlocklockonceonce+poacquireonce.litmus [new file with mode: 0644]
tools/memory-model/litmus-tests/MP+unlocklockonceonce+fencermbonceonce.litmus [new file with mode: 0644]
tools/memory-model/litmus-tests/README