projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74ea15d
)
virtio: fix typos of memory barriers
author
Jason Wang
<
[email protected]
>
Fri, 20 Jan 2012 08:16:59 +0000
(16:16 +0800)
committer
Rusty Russell
<
[email protected]
>
Fri, 27 Jan 2012 21:40:22 +0000
(08:10 +1030)
Note: this fixes a bug introduced recently in
7b21e34fd1c272e3a8c3846168f2f6287a4cd72b
.
Signed-off-by: Jason Wang <
[email protected]
>
Acked-by: Michael S. Tsirkin <
[email protected]
>
Signed-off-by: Rusty Russell <
[email protected]
>
drivers/virtio/virtio_ring.c
patch
|
blob
|
history
diff --git
a/drivers/virtio/virtio_ring.c
b/drivers/virtio/virtio_ring.c
index 79e1b292c0309b8175a84d7e4353ff94b8e13eb0..78428a863b4691067005f924ded6824524467def 100644
(file)
--- a/
drivers/virtio/virtio_ring.c
+++ b/
drivers/virtio/virtio_ring.c
@@
-35,7
+35,7
@@
#define virtio_rmb(vq) \
do { if ((vq)->weak_barriers) smp_rmb(); else rmb(); } while(0)
#define virtio_wmb(vq) \
- do { if ((vq)->weak_barriers) smp_
rmb(); else r
mb(); } while(0)
+ do { if ((vq)->weak_barriers) smp_
wmb(); else w
mb(); } while(0)
#else
/* We must force memory ordering even if guest is UP since host could be
* running on another CPU, but SMP barriers are defined to barrier() in that