diff options
| -rw-r--r-- | Documentation/memory-barriers.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt index a6ca533a73fc..a4de88fb55f0 100644 --- a/Documentation/memory-barriers.txt +++ b/Documentation/memory-barriers.txt | |||
| @@ -757,10 +757,14 @@ SMP BARRIER PAIRING | |||
| 757 | When dealing with CPU-CPU interactions, certain types of memory barrier should | 757 | When dealing with CPU-CPU interactions, certain types of memory barrier should |
| 758 | always be paired. A lack of appropriate pairing is almost certainly an error. | 758 | always be paired. A lack of appropriate pairing is almost certainly an error. |
| 759 | 759 | ||
| 760 | A write barrier should always be paired with a data dependency barrier or read | 760 | General barriers pair with each other, though they also pair with |
| 761 | barrier, though a general barrier would also be viable. Similarly a read | 761 | most other types of barriers, albeit without transitivity. An acquire |
| 762 | barrier or a data dependency barrier should always be paired with at least an | 762 | barrier pairs with a release barrier, but both may also pair with other |
| 763 | write barrier, though, again, a general barrier is viable: | 763 | barriers, including of course general barriers. A write barrier pairs |
| 764 | with a data dependency barrier, an acquire barrier, a release barrier, | ||
| 765 | a read barrier, or a general barrier. Similarly a read barrier or a | ||
| 766 | data dependency barrier pairs with a write barrier, an acquire barrier, | ||
| 767 | a release barrier, or a general barrier: | ||
| 764 | 768 | ||
| 765 | CPU 1 CPU 2 | 769 | CPU 1 CPU 2 |
| 766 | =============== =============== | 770 | =============== =============== |
