Add io_uring_smp_load_relaxed() for internal use. Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> --- src/include/liburing/barrier.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/include/liburing/barrier.h b/src/include/liburing/barrier.h index ad69506..6a1aa52 100644 --- a/src/include/liburing/barrier.h +++ b/src/include/liburing/barrier.h @@ -47,6 +47,8 @@ do { \ ___p1; \ }) +#define io_uring_smp_load_relaxed(p) IO_URING_READ_ONCE(*(p)) + #else /* defined(__x86_64__) || defined(__i386__) */ /* * Add arch appropriate definitions. Use built-in atomic operations for @@ -55,6 +57,8 @@ do { \ #define io_uring_smp_store_release(p, v) \ __atomic_store_n(p, v, __ATOMIC_RELEASE) #define io_uring_smp_load_acquire(p) __atomic_load_n(p, __ATOMIC_ACQUIRE) +#define io_uring_smp_load_relaxed(p) __atomic_load_n(p, __ATOMIC_RELAXED) + #endif /* defined(__x86_64__) || defined(__i386__) */ #endif /* defined(LIBURING_BARRIER_H) */ -- 2.24.0