X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=backend.c;h=8a2b2ab8c2ebb69a50bd8c44a3cb7c1bcbd7be8e;hp=a7e91843a0be087ff552d050a48aef8220cc2a8d;hb=98e7161cda6a1f5b0cbd8979c261db8eb3a4ab72;hpb=b8c7923917200c7c68c84c21549940d4be6b1398 diff --git a/backend.c b/backend.c index a7e91843..8a2b2ab8 100644 --- a/backend.c +++ b/backend.c @@ -966,8 +966,10 @@ static void do_io(struct thread_data *td, uint64_t *bytes_done) * Break if we exceeded the bytes. The exception is time * based runs, but we still need to break out of the loop * for those to run verification, if enabled. + * Jobs read from iolog do not use this stop condition. */ if (bytes_issued >= total_bytes && + !td->o.read_iolog_file && (!td->o.time_based || (td->o.time_based && td->o.verify != VERIFY_NONE))) break; @@ -1909,6 +1911,8 @@ err: */ if (o->write_iolog_file) write_iolog_close(td); + if (td->io_log_rfile) + fclose(td->io_log_rfile); td_set_runstate(td, TD_EXITED);