summaryrefslogtreecommitdiff
path: root/tools/io_uring/barrier.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2023-08-09 15:22:52 +0300
committerJens Axboe <axboe@kernel.dk>2023-08-09 19:46:46 +0300
commit17619322e56bce68290842889658ec5981f00a42 (patch)
tree95e9bc854294e08488aa45248d25ad53fd47cf85 /tools/io_uring/barrier.h
parent569f5308e54352a12181cc0185f848024c5443e8 (diff)
downloadlinux-17619322e56bce68290842889658ec5981f00a42.tar.xz
io_uring: kill io_uring userspace examples
There are tons of io_uring tests and examples in liburing and on the Internet. If you're looking for a benchmark, io_uring-bench.c is just an acutely outdated version of fio/io_uring. And for basic condensed init template for likes of selftests take a peek at io_uring_zerocopy_tx.c. Kill tools/io_uring/, it's a burden keeping it here. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/7c740701d3b475dcad8c92602a551044f72176b4.1691543666.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/io_uring/barrier.h')
-rw-r--r--tools/io_uring/barrier.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/io_uring/barrier.h b/tools/io_uring/barrier.h
deleted file mode 100644
index ef00f6722ba9..000000000000
--- a/tools/io_uring/barrier.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef LIBURING_BARRIER_H
-#define LIBURING_BARRIER_H
-
-#if defined(__x86_64) || defined(__i386__)
-#define read_barrier() __asm__ __volatile__("":::"memory")
-#define write_barrier() __asm__ __volatile__("":::"memory")
-#else
-/*
- * Add arch appropriate definitions. Be safe and use full barriers for
- * archs we don't have support for.
- */
-#define read_barrier() __sync_synchronize()
-#define write_barrier() __sync_synchronize()
-#endif
-
-#endif