summaryrefslogtreecommitdiff
path: root/block/blk-rq-qos.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2018-07-20 04:42:13 +0300
committerJens Axboe <axboe@kernel.dk>2018-07-22 20:30:53 +0300
commit22f17952c7873a427e6e4280d723c0f686d75fb9 (patch)
treeba3046530a5f3dadb9b3e66289027b49531a423c /block/blk-rq-qos.h
parent636620b66d5d4012c4a9c86206013964d3986c4f (diff)
downloadlinux-22f17952c7873a427e6e4280d723c0f686d75fb9.tar.xz
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>
Diffstat (limited to 'block/blk-rq-qos.h')
-rw-r--r--block/blk-rq-qos.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-rq-qos.h b/block/blk-rq-qos.h
index d5e2f68fe41e..32b02efbfa66 100644
--- a/block/blk-rq-qos.h
+++ b/block/blk-rq-qos.h
@@ -93,7 +93,7 @@ static inline void rq_qos_del(struct request_queue *q, struct rq_qos *rqos)
}
}
-bool rq_wait_inc_below(struct rq_wait *rq_wait, int limit);
+bool rq_wait_inc_below(struct rq_wait *rq_wait, unsigned int limit);
void rq_depth_scale_up(struct rq_depth *rqd);
void rq_depth_scale_down(struct rq_depth *rqd, bool hard_throttle);
bool rq_depth_calc_max_depth(struct rq_depth *rqd);