From: Jens Axboe Date: Thu, 19 May 2016 15:19:03 +0000 (-0600) Subject: backend: mark the thread as finishing, when we are out of the IO loop X-Git-Tag: fio-2.10~16 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=2cea0b4c396c01c8d09108db1009677ebabb8b75;hp=2c45a4acc6a5e335b9dcf4d6722d4cbbf92d9f6c backend: mark the thread as finishing, when we are out of the IO loop Signed-off-by: Jens Axboe --- diff --git a/backend.c b/backend.c index efedb532..56909f42 100644 --- a/backend.c +++ b/backend.c @@ -1705,6 +1705,8 @@ static void *thread_main(void *data) break; } + td_set_runstate(td, TD_FINISHING); + update_rusage_stat(td); td->ts.total_run_time = mtime_since_now(&td->epoch); td->ts.io_bytes[DDIR_READ] = td->io_bytes[DDIR_READ];