From 281f9b6363ff7ca9fdcc93c600faa8c907ba3010 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 23 May 2007 09:34:42 +0200 Subject: [PATCH] Fix bug with time_based run We need to clear the FIO_FILE_DONE flag and the number of files done, to avoid do_io() exiting quickly for a re-run. Signed-off-by: Jens Axboe --- fio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fio.c b/fio.c index 6483e64c..9e93159f 100644 --- a/fio.c +++ b/fio.c @@ -736,11 +736,14 @@ static int clear_io_state(struct thread_data *td) td->last_was_sync = 0; + td->nr_done_files = 0; + for_each_file(td, f, i) td_io_close_file(td, f); ret = 0; for_each_file(td, f, i) { + f->flags &= ~FIO_FILE_DONE; ret = td_io_open_file(td, f); if (ret) break; -- 2.25.1