]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69418620d86f7ef3b013a1842f87b0108a744242
treeba3046530a5f3dadb9b3e66289027b49531a423c
parent3a7a7609347a7fa7c9037fb6f904977acc138ccc
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