X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio.c;h=c609f55d8e9520672e8c1e67e8c7b811dbceb002;hb=126d65c6fc97d6acdc568aa5a969c012018daf15;hp=d345064d392111e50accdb70db9fe2d43f45ab09;hpb=f63f7f3bbc49c72ee06f351bf3a7312df32f9e3c;p=fio.git diff --git a/fio.c b/fio.c index d345064d..c609f55d 100644 --- a/fio.c +++ b/fio.c @@ -787,8 +787,7 @@ static int clear_io_state(struct thread_data *td) if (td->o.time_based || td->o.loops) td->nr_done_files = 0; - for_each_file(td, f, i) - td_io_close_file(td, f); + close_files(td); ret = 0; for_each_file(td, f, i) { @@ -966,7 +965,7 @@ static void *thread_main(void *data) err: if (td->error) printf("fio: pid=%d, err=%d/%s\n", td->pid, td->error, td->verror); - close_files(td); + close_and_free_files(td); close_ioengine(td); cleanup_io_u(td);