]> git.baikalelectronics.ru Git - kernel.git/commit
blk-iolatency: deal with nr_requests == 1
authorJosef Bacik <josef@toxicpanda.com>
Fri, 28 Sep 2018 17:45:40 +0000 (13:45 -0400)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Sep 2018 17:47:28 +0000 (11:47 -0600)
commit7f391f387115888a496544b4e9a35b5d8b698682
tree357db225648674eaf5fa5467e2fe9f6367564013
parente750deb0613bdc460ffc7b3aad473fe33fd8cd73
blk-iolatency: deal with nr_requests == 1

Hitting the case where blk_queue_depth() returned 1 uncovered the fact
that iolatency doesn't actually handle this case properly, it simply
doesn't scale down anybody.  For this case we should go straight into
applying the time delay, which we weren't doing.  Since we already limit
the floor at 1 request this if statement is not needed, and this allows
us to set our depth to 1 which allows us to apply the delay if needed.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iolatency.c