Try a little harder to honor number_ios more accurately
authorJens Axboe <axboe@fb.com>
Tue, 11 Mar 2014 16:21:18 +0000 (10:21 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 11 Mar 2014 16:21:18 +0000 (10:21 -0600)
commit26251d8d635bc9b9d31de2427095684b0c87b836
tree5de4d3e2ea3bae8f165285451f037befb70e74ea
parentc46fda904f38a66f5f68a4b766438c09ef8cddcc
Try a little harder to honor number_ios more accurately

Previously, fio checked this on completion, which means we could
almost spill over by the iodepth setting. Check this before
issue instead, taking the in flight IOs into account as well.

Reported-by: Robert Elliott <Elliott@hp.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c
io_u.c