summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Moyer <jmoyer@redhat.com>2019-11-05 10:33:19 -0500
committerJens Axboe <axboe@kernel.dk>2019-11-05 08:35:26 -0700
commitba97eaf8f9ef2030d581be10df9d875dbfadc91d (patch)
tree8162f906d2d42f8b119ebe12851739bf642b2fc2
parent0781f2af2c4837ca01d97329bf9ce718ff202e00 (diff)
downloadliburing-ba97eaf8f9ef2030d581be10df9d875dbfadc91d.tar.gz
liburing-ba97eaf8f9ef2030d581be10df9d875dbfadc91d.tar.bz2
barrier.h: add generic smp_mb implementation
This missing define causes build failures on s390: src/include/liburing.h:298: undefined reference to `io_uring_smp_mb' Signed-off-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/include/liburing/barrier.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/liburing/barrier.h b/src/include/liburing/barrier.h
index fc40a8a..aca308a 100644
--- a/src/include/liburing/barrier.h
+++ b/src/include/liburing/barrier.h
@@ -76,6 +76,7 @@ do { \
* Add arch appropriate definitions. Be safe and use full barriers for
* archs we don't have support for.
*/
+#define io_uring_smp_mb() __sync_synchronize()
#define io_uring_smp_rmb() __sync_synchronize()
#define io_uring_smp_wmb() __sync_synchronize()
#endif /* defined(__x86_64__) || defined(__i386__) */