Recent changes (master)

Jens Axboe
2020-02-27T13:00:13Z

The following changes since commit fb34110eac72f01651543095656693f196d895ca:

Merge branch 'div-by-zero' of https://github.com/vincentkfu/fio (2020-02-24 08:23:52 -0700)

are available in the Git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 58d3994d9be0783990af82571cea819b499d526c:

io_uring: we should not need two write barriers for SQ updates (2020-02-26 19:54:12 -0700)

----------------------------------------------------------------
Eric Sandeen (1):
fio: remove duplicate global definition of tsc_reliable

Jens Axboe (1):
io_uring: we should not need two write barriers for SQ updates

engines/io_uring.c | 2 --
t/arch.c | 1 -
t/io_uring.c | 2 --
3 files changed, 5 deletions(-)

---

Diff of recent changes:

diff --git a/engines/io_uring.c b/engines/io_uring.c
index 5e59f975..1efc6cff 100644
--- a/engines/io_uring.c
+++ b/engines/io_uring.c
@@ -374,8 +374,6 @@ static enum fio_q_status fio_ioring_queue(struct thread_data *td,
if (next_tail == *ring->head)
return FIO_Q_BUSY;

- /* ensure sqe stores are ordered with tail update */
- write_barrier();
if (o->cmdprio_percentage)
fio_ioring_prio_prep(td, io_u);
ring->array[tail & ld->sq_ring_mask] = io_u->index;
diff --git a/t/arch.c b/t/arch.c
index bd28a848..a72cef3a 100644
--- a/t/arch.c
+++ b/t/arch.c
@@ -1,5 +1,4 @@
#include "../arch/arch.h"

unsigned long arch_flags = 0;
-bool tsc_reliable;
int arch_random;
diff --git a/t/io_uring.c b/t/io_uring.c
index 55b75f6e..e84a2b6b 100644
--- a/t/io_uring.c
+++ b/t/io_uring.c
@@ -216,8 +216,6 @@ static int prep_more_ios(struct submitter *s, int max_ios)
} while (prepped < max_ios);

if (*ring->tail != tail) {
- /* order tail store with writes to sqes above */
- write_barrier();
*ring->tail = tail;
write_barrier();
}