Fix "verify bad_hdr rand_seed" for requeued I/Os
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index eb617e649c1df82dba42259361cd36f3a32e7796..0b2754f1e9441f8d0ba5a8ea060ad7760fa76c90 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -2004,7 +2004,7 @@ static void io_completed(struct thread_data *td, struct io_u **io_u_ptr,
        dprint_io_u(io_u, "complete");
 
        assert(io_u->flags & IO_U_F_FLIGHT);
-       io_u_clear(td, io_u, IO_U_F_FLIGHT | IO_U_F_BUSY_OK);
+       io_u_clear(td, io_u, IO_U_F_FLIGHT | IO_U_F_BUSY_OK | IO_U_F_PATTERN_DONE);
 
        /*
         * Mark IO ok to verify