From: Jens Axboe Date: Wed, 4 Nov 2009 11:51:17 +0000 (+0100) Subject: Wait for async threads before freeing/killing IO buffers X-Git-Tag: fio-1.35~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b4707ed7905cc4f1839f799cc1fe8d4b37a1fcef;p=fio.git Wait for async threads before freeing/killing IO buffers Signed-off-by: Jens Axboe --- 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 */