Skip to content

Commit

Permalink
docs/atomics.txt: fix two typos
Browse files Browse the repository at this point in the history
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
lersek authored and Michael Tokarev committed Apr 30, 2015
1 parent 5ecaa4e commit d3e4abd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/atomics.txt
Expand Up @@ -281,7 +281,7 @@ note that the other barrier may actually be in a driver that runs in
the guest!

For the purposes of pairing, smp_read_barrier_depends() and smp_rmb()
both count as read barriers. A read barriers shall pair with a write
both count as read barriers. A read barrier shall pair with a write
barrier or a full barrier; a write barrier shall pair with a read
barrier or a full barrier. A full barrier can pair with anything.
For example:
Expand All @@ -294,7 +294,7 @@ For example:
smp_rmb();
y = a;

Note that the "writing" thread are accessing the variables in the
Note that the "writing" thread is accessing the variables in the
opposite order as the "reading" thread. This is expected: stores
before the write barrier will normally match the loads after the
read barrier, and vice versa. The same is true for more than 2
Expand Down

0 comments on commit d3e4abd

Please sign in to comment.