We call blk_mq_map_queue() a lot, at least two times for eachHehe.
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.
Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
---
block/blk-flush.c | 12 ++++--------
block/blk-mq-debugfs.c | 4 +---
block/blk-mq-sched.c | 6 ++----
block/blk-mq-tag.c | 9 +--------
block/blk-mq.c | 22 +++++++++-------------
block/blk-mq.h | 5 +----
include/linux/blkdev.h | 1 +
7 files changed, 19 insertions(+), 40 deletions(-)