diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-07-28 09:10:44 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-07-28 09:10:44 -0600 |
commit | b8aae2073e18775ab09f0b9d00f5c067d2358d79 (patch) | |
tree | eb1539976011eebd75fec26de07b12bd3cdd8d3f | |
parent | 45eb1cf5ce883ae3b170f102db38204616c8e4b1 (diff) | |
parent | 5c15a9111487734e448dc10359ec63c56a302938 (diff) | |
download | fio-b8aae2073e18775ab09f0b9d00f5c067d2358d79.tar.gz |
Merge branch 'io_uring' of https://github.com/dpronin/fio
* 'io_uring' of https://github.com/dpronin/fio:
io_uring engine: 'atomic_load_relaxed' instead of 'atomic_load_acquire'
-rw-r--r-- | engines/io_uring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/io_uring.c b/engines/io_uring.c index e1abf6888..b361e6a5b 100644 --- a/engines/io_uring.c +++ b/engines/io_uring.c @@ -509,7 +509,7 @@ static enum fio_q_status fio_ioring_queue(struct thread_data *td, tail = *ring->tail; next_tail = tail + 1; - if (next_tail == atomic_load_acquire(ring->head)) + if (next_tail == atomic_load_relaxed(ring->head)) return FIO_Q_BUSY; if (ld->cmdprio.mode != CMDPRIO_MODE_NONE) @@ -569,7 +569,7 @@ static int fio_ioring_commit(struct thread_data *td) unsigned start = *ld->sq_ring.tail - ld->queued; unsigned flags; - flags = atomic_load_acquire(ring->flags); + flags = atomic_load_relaxed(ring->flags); if (flags & IORING_SQ_NEED_WAKEUP) io_uring_enter(ld, ld->queued, 0, IORING_ENTER_SQ_WAKEUP); |