rate: ensure IO issue restarts right after sleep
authorJens Axboe <axboe@kernel.dk>
Thu, 7 Dec 2017 16:06:04 +0000 (09:06 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 Dec 2017 16:06:04 +0000 (09:06 -0700)
commit1aa39b0ce447f228460e6d0af601fee88fd5f4b4
treea3ce7ace78b48e219a2696061fb1cb1f62fd42ac
parent395feabb53806d5cff2e0b73b6c94048f05b5aae
rate: ensure IO issue restarts right after sleep

If we have rate_ignore_thinktime set, we account the number of bytes
we would have done in the period of the sleep. However, we need
to subtract one block, otherwise we end up doing a rated sleep
right after the thinktime sleep.

Fixes: 1a9bf814 ("Add option to ignore thinktime for rated IO")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c