summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2011-01-14 15:22:14 +0100
committerJens Axboe <jaxboe@fusionio.com>2011-01-14 15:22:14 +0100
commit9a793c2f91a47df348237f1a9b778253ca87ec2e (patch)
tree95e2476cd6912734145eb85e8f2259e817e79a63
parentcfbcd0dc2fcbf0f9bfe92ff8f4ab17f21e46d21e (diff)
downloadfio-9a793c2f91a47df348237f1a9b778253ca87ec2e.tar.gz
fio-9a793c2f91a47df348237f1a9b778253ca87ec2e.tar.bz2
Fix race in exit of eta/util thread
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
-rw-r--r--fio.c2
1 files changed, 2 insertions, 0 deletions
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();
}