blk-rq-qos: inline check for q->rq_qos functions
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Nov 2018 19:25:10 +0000 (12:25 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 16 Nov 2018 15:34:19 +0000 (08:34 -0700)
commite504545446e4be916b170f159b6495c352a2b5a5
tree6370fdf66ade45bf67166ee211e282326b9d8eda
parent344e9ffcbd1898e1dc04085564a6e05c30ea8199
blk-rq-qos: inline check for q->rq_qos functions

Put the short code in the fast path, where we don't have any
functions attached to the queue. This minimizes the impact on
the hot path in the core code.

Cc: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-rq-qos.c
block/blk-rq-qos.h