blk-mq: add blk_mq_free_hctx_request()
authorJens Axboe <axboe@fb.com>
Mon, 17 Nov 2014 17:41:57 +0000 (10:41 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 17 Nov 2014 17:41:57 +0000 (10:41 -0700)
commit7c7f2f2bc9a63f9605a16eabac59fc655dfe7c9a
tree5d3f60e0b52447eded55ebf8d649e19f0b4f7471
parent1a3b595a281a44be4074fe33b317a0a4854b4197
blk-mq: add blk_mq_free_hctx_request()

It's silly to use blk_mq_free_request() which in turn maps the
request to the hardware queue, for places where we already know
what the hardware queue is. This saves us an extra mapping of a
hardware queue on request completion, if the caller knows this
information already.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
include/linux/blk-mq.h