blk-rq-qos: make depth comparisons unsigned
authorJosef Bacik <josef@toxicpanda.com>
Fri, 20 Jul 2018 01:42:13 +0000 (21:42 -0400)
committerJens Axboe <axboe@kernel.dk>
Sun, 22 Jul 2018 17:30:53 +0000 (11:30 -0600)
commit22f17952c7873a427e6e4280d723c0f686d75fb9
treeba3046530a5f3dadb9b3e66289027b49531a423c
parent636620b66d5d4012c4a9c86206013964d3986c4f
blk-rq-qos: make depth comparisons unsigned

With the change to use UINT_MAX I broke the depth check as any value of
inflight (ie 0) would be less than (int)UINT_MAX.  Fix this by changing
everything to unsigned int to match the depth.

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