]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9803beff0a805e88aea5adc646de048f1eb0ec9c
tree5e86d66c4635958dbc2b9ee277e6234a9f055fc1
parent71a883ea7ca41e4103d0a53faf9e651d1e2f594d
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