]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd498457931f67064460410507014e08fb72b8a72
tree6370fdf66ade45bf67166ee211e282326b9d8eda
parentec242cfb4531a7a885f5755e0d06561edec7b52f
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