Merge branch 'patch-3' of https://github.com/yangjueji/fio
[fio.git] / engines / io_uring.c
index 407d65ce22a40ed5c094a90bcab48b363122adfe..f30a3c00cea943948676227a01bf71d610cd5051 100644 (file)
@@ -646,7 +646,7 @@ static int fio_ioring_commit(struct thread_data *td)
         */
        if (o->sqpoll_thread) {
                struct io_sq_ring *ring = &ld->sq_ring;
-               unsigned start = *ld->sq_ring.head;
+               unsigned start = *ld->sq_ring.tail - ld->queued;
                unsigned flags;
 
                flags = atomic_load_acquire(ring->flags);