projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4eab7d
)
tools/virtio: fix smp_mb on x86
author
Michael S. Tsirkin
<mst@redhat.com>
Thu, 25 Jan 2018 23:36:44 +0000
(
01:36
+0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 29 Jan 2018 17:02:55 +0000
(12:02 -0500)
Offset 128 overlaps the last word of the redzone.
Use 132 which is always beyond that.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/virtio/ringtest/main.h
patch
|
blob
|
blame
|
history
diff --git
a/tools/virtio/ringtest/main.h
b/tools/virtio/ringtest/main.h
index 593a3289c87d72060fc6a23c630b228c4b2b72cc..301d59bfcd0ad32d24cbd1b9e3790108275f2b41 100644
(file)
--- a/
tools/virtio/ringtest/main.h
+++ b/
tools/virtio/ringtest/main.h
@@
-111,7
+111,7
@@
static inline void busy_wait(void)
}
#if defined(__x86_64__) || defined(__i386__)
-#define smp_mb() asm volatile("lock; addl $0,-1
28
(%%rsp)" ::: "memory", "cc")
+#define smp_mb() asm volatile("lock; addl $0,-1
32
(%%rsp)" ::: "memory", "cc")
#else
/*
* Not using __ATOMIC_SEQ_CST since gcc docs say they are only synchronized