diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-10-29 13:07:33 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-07 13:44:59 -0700 |
commit | ff2c56609d9b1f0739ae3a3bfdb78191d01e4192 (patch) | |
tree | 77ceeb250e502d55837c29da39ae61f62ce5284b /block/blk-mq.h | |
parent | ed76e329d74a4b15ac0f5fd3adbd52ec0178a134 (diff) | |
download | linux-ff2c56609d9b1f0739ae3a3bfdb78191d01e4192.tar.bz2 |
blk-mq: provide dummy blk_mq_map_queue_type() helper
Doesn't do anything right now, but it's needed as a prep patch
to get the interfaces right.
While in there, correct the blk_mq_map_queue() CPU type to an unsigned
int.
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.h')
-rw-r--r-- | block/blk-mq.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h index 889f0069dd80..d9facfb9ca51 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -73,13 +73,20 @@ void blk_mq_try_issue_list_directly(struct blk_mq_hw_ctx *hctx, extern int blk_mq_hw_queue_to_node(struct blk_mq_queue_map *qmap, unsigned int); static inline struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *q, - int cpu) + unsigned int cpu) { struct blk_mq_tag_set *set = q->tag_set; return q->queue_hw_ctx[set->map[0].mq_map[cpu]]; } +static inline struct blk_mq_hw_ctx *blk_mq_map_queue_type(struct request_queue *q, + unsigned int hctx_type, + unsigned int cpu) +{ + return blk_mq_map_queue(q, cpu); +} + /* * sysfs helpers */ |