Fix for terminating threads in ramp time
authorJens Axboe <jaxboe@fusionio.com>
Wed, 6 Jul 2011 07:05:31 +0000 (09:05 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Wed, 6 Jul 2011 07:05:31 +0000 (09:05 +0200)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fio.c

diff --git a/fio.c b/fio.c
index 5ea1a2c..09bff2a 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -102,7 +102,7 @@ static void terminate_threads(int group_id)
                        /*
                         * if the thread is running, just let it exit
                         */
-                       if (td->runstate < TD_RUNNING)
+                       if (td->runstate < TD_RAMP)
                                kill(td->pid, SIGTERM);
                        else {
                                struct ioengine_ops *ops = td->io_ops;