Improve rate limiting
authorJens Axboe <axboe@fb.com>
Thu, 15 Jan 2015 17:39:12 +0000 (10:39 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 15 Jan 2015 17:39:12 +0000 (10:39 -0700)
commit9cc80b6d92a15c6b9cbdbc021436f1628054cfda
tree8aab3e5ae315fecbd01c1e14c758fd1504fde527
parente298cc8ab1e007482be2ab1488ae8d547af82520
Improve rate limiting

If we have pending IO, we should commit it before going to sleep,
not just wait for IO that has already been issued.

Also improve the delay functions to return the time spent, so
that users don't have to track tha separately if they care about
the precision.

Signed-off-by: Jens Axboe <axboe@fb.com>
fio_time.h
io_u.c
time.c