blk-mq: let blk_mq_tag_to_rq() take blk_mq_tags as the main parameter
authorJens Axboe <axboe@fb.com>
Thu, 26 Jun 2014 05:26:36 +0000 (23:26 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:51 +0000 (12:54 -0600)
commit8cf073133b24c9806c271719a7f5594b8dc7ec20
tree6b644845e63e04b4c3255acf3611e0152f9f1fa3
parent74051bdce0eda6f583b80743646249034eaf6299
blk-mq: let blk_mq_tag_to_rq() take blk_mq_tags as the main parameter

We currently pass in the hardware queue, and get the tags from there.
But from scsi-mq, with a shared tag space, it's a lot more convenient
to pass in the blk_mq_tags instead as the hardware queue isn't always
directly available. So instead of having to re-map to a given
hardware queue from rq->mq_ctx, just pass in the tags structure.

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