From b4707ed7905cc4f1839f799cc1fe8d4b37a1fcef Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 4 Nov 2009 12:51:17 +0100 Subject: [PATCH] Wait for async threads before freeing/killing IO buffers Signed-off-by: Jens Axboe --- fio.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fio.c b/fio.c index 8f8bb561..debcac5e 100644 --- a/fio.c +++ b/fio.c @@ -1195,6 +1195,10 @@ err: if (td->error) printf("fio: pid=%d, err=%d/%s\n", (int) td->pid, td->error, td->verror); + + if (td->o.verify_async) + verify_async_exit(td); + close_and_free_files(td); close_ioengine(td); cleanup_io_u(td); @@ -1205,9 +1209,6 @@ err: td_verror(td, ret, "fio_cpuset_exit"); } - if (td->o.verify_async) - verify_async_exit(td); - /* * do this very late, it will log file closing as well */ -- 2.25.1