Fix exit being slowed by disk util stat time
authorJens Axboe <axboe@fb.com>
Thu, 23 Oct 2014 14:53:33 +0000 (08:53 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 23 Oct 2014 14:53:33 +0000 (08:53 -0600)
commit8aab824f8a042e76c83902afa4a1e9a473467e29
tree2ef9c50d1eb226f812367be89828b07fd3fbfca0
parent60a5a18b811cd60430d2912b49fa3970df0d5077
Fix exit being slowed by disk util stat time

Add a cv/lock to handle exit of the disk util thread. This is a
lot cleaner than the adhoc method that was used before, and it
means that we can signal the exit immediately instead of waiting
for DISKUTIL_MSEC to pass.

Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c
diskutil.h