From 9a793c2f91a47df348237f1a9b778253ca87ec2e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 14 Jan 2011 15:22:14 +0100 Subject: [PATCH] Fix race in exit of eta/util thread Signed-off-by: Jens Axboe --- fio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fio.c b/fio.c index 77451db2..9d9027d7 100644 --- a/fio.c +++ b/fio.c @@ -135,6 +135,8 @@ static void *disk_thread_main(void *data) while (threads) { usleep(DISK_UTIL_MSEC * 1000); + if (!threads) + break; update_io_ticks(); print_thread_status(); } -- 2.25.1