account for delayed jobs when reaping threads
authorAaron Carroll <aaronc@gelato.unsw.edu.au>
Wed, 20 Feb 2008 08:14:12 +0000 (09:14 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 20 Feb 2008 08:14:12 +0000 (09:14 +0100)
commita1dedc1f6347a33fd1265348db86a9258cadefd2
treee85dbf9c811ad7821c5556cb5ebc7d4b9e959793
parent509df2bc49284a93efd6b890bdf5e3c4ea2aba4a
account for delayed jobs when reaping threads

reap_threads does not account for jobs that have been delayed
(e.g. via startdelay) which may lead to all threads being
terminated.  The following job file demonstrates the problem:

[job1]
filename=job1file
size=16k
startdelay=1

Signed-off-by: Aaron Carroll <aaronc@gelato.unsw.edu.au>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c