blk-mq: cache request hardware queue mapping
authorJens Axboe <axboe@kernel.dk>
Mon, 29 Oct 2018 21:06:13 +0000 (15:06 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 20:44:59 +0000 (13:44 -0700)
commitea4f995ee8b8f0578b3319949f2edd5d812fdb0a
treef7516777fbd8b2fc16cf75b846792981c3a07434
parent392546aed22009060911f76b6ea24520e2f8b50f
blk-mq: cache request hardware queue mapping

We call blk_mq_map_queue() a lot, at least two times for each
request per IO, sometimes more. Since we now have an indirect
call as well in that function. cache the mapping so we don't
have to re-call blk_mq_map_queue() for the same request
multiple times.

Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-flush.c
block/blk-mq-debugfs.c
block/blk-mq-sched.c
block/blk-mq-tag.c
block/blk-mq.c
block/blk-mq.h
include/linux/blkdev.h