Skip to content
Snippets Groups Projects
Commit f9de4171 authored by Alan Stern's avatar Alan Stern Committed by Paul E. McKenney
Browse files

tools/memory-model: Expand definition of barrier


Commit 66be4e66 ("rcu: locking and unlocking need to always be at
least barriers") added compiler barriers back into rcu_read_lock() and
rcu_read_unlock().  Furthermore, srcu_read_lock() and
srcu_read_unlock() have always contained compiler barriers.

The Linux Kernel Memory Model ought to know about these barriers.
This patch adds them into the memory model.

Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Acked-by: default avatarAndrea Parri <andrea.parri@amarulasolutions.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent 37c600a3
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,8 @@ let strong-fence = mb | gp ...@@ -45,7 +45,8 @@ let strong-fence = mb | gp
let nonrw-fence = strong-fence | po-rel | acq-po let nonrw-fence = strong-fence | po-rel | acq-po
let fence = nonrw-fence | wmb | rmb let fence = nonrw-fence | wmb | rmb
let barrier = fencerel(Barrier | Rmb | Wmb | Mb | Sync-rcu | Sync-srcu | let barrier = fencerel(Barrier | Rmb | Wmb | Mb | Sync-rcu | Sync-srcu |
Before-atomic | After-atomic | Acquire | Release) | Before-atomic | After-atomic | Acquire | Release |
Rcu-lock | Rcu-unlock | Srcu-lock | Srcu-unlock) |
(po ; [Release]) | ([Acquire] ; po) (po ; [Release]) | ([Acquire] ; po)
(**********************************) (**********************************)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment