diff --git a/iolog.c b/iolog.c index 37ad0d2a16..e3a56db957 100644 --- a/iolog.c +++ b/iolog.c @@ -236,15 +236,15 @@ int read_iolog_get(struct thread_data *td, struct io_u *io_u) io_u->buflen, io_u->file->file_name); if (ipo->delay) iolog_delay(td, ipo->delay); + + if (td->o.dp_type != FIO_DP_NONE) + dp_fill_dspec_data(td, io_u); } else { elapsed = mtime_since_genesis(); if (ipo->delay > elapsed) usec_sleep(td, (ipo->delay - elapsed) * 1000); } - if (td->o.dp_type != FIO_DP_NONE) - dp_fill_dspec_data(td, io_u); - free(ipo); if (io_u->ddir != DDIR_WAIT)