From 2cea0b4c396c01c8d09108db1009677ebabb8b75 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 19 May 2016 09:19:03 -0600 Subject: [PATCH] backend: mark the thread as finishing, when we are out of the IO loop Signed-off-by: Jens Axboe --- backend.c | 2 ++ 1 file changed, 2 insertions(+) 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]; -- 2.25.1