ioengines.c:346: td_io_queue: Assertion `res == 0' failed
[fio.git] / ioengines.c
index e2316ee4e391d0d5899c960552fec4d19aa33ca2..843dd466373a28ae853b1b4e62c3cdbd6eeeff8c 100644 (file)
@@ -341,9 +341,10 @@ enum fio_q_status td_io_queue(struct thread_data *td, struct io_u *io_u)
         * started the overlap check because the IO_U_F_FLIGHT
         * flag is now set
         */
-       if (td_offload_overlap(td)) {
+       if (io_u->flags & IO_U_F_OVERLAP_LOCK) {
                int res = pthread_mutex_unlock(&overlap_check);
                assert(res == 0);
+               io_u_clear(td, io_u, IO_U_F_OVERLAP_LOCK);
        }
 
        assert(fio_file_open(io_u->file));