From 552c6a08d04c74d20eeaa86f535bfd553b352370 Mon Sep 17 00:00:00 2001 From: Julia Suvorova Date: Mon, 19 Aug 2019 08:45:28 -0600 Subject: liburing/barrier.h: Add prefix io_uring to barriers The names of the barriers conflict with the namespaces of other projects when trying to directly include liburing.h. Avoid using popular global names. Reviewed-by: Stefan Hajnoczi Signed-off-by: Julia Suvorova Signed-off-by: Jens Axboe --- src/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/queue.c') diff --git a/src/queue.c b/src/queue.c index 74a077f..007733c 100644 --- a/src/queue.c +++ b/src/queue.c @@ -104,7 +104,7 @@ static int __io_uring_submit(struct io_uring *ring, unsigned wait_nr) * Ensure that the kernel sees the SQE updates before it sees the tail * update. */ - smp_store_release(sq->ktail, ktail); + io_uring_smp_store_release(sq->ktail, ktail); flags = 0; if (wait_nr || sq_ring_needs_enter(ring, &flags)) { -- cgit