summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-10-29 15:07:33 -0400
committerJens Axboe <axboe@kernel.dk>2018-11-07 15:44:59 -0500
commitff2c56609d9b1f0739ae3a3bfdb78191d01e4192 (patch)
tree77ceeb250e502d55837c29da39ae61f62ce5284b /block/blk-mq.h
parented76e329d74a4b15ac0f5fd3adbd52ec0178a134 (diff)
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.h9
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,
73extern int blk_mq_hw_queue_to_node(struct blk_mq_queue_map *qmap, unsigned int); 73extern int blk_mq_hw_queue_to_node(struct blk_mq_queue_map *qmap, unsigned int);
74 74
75static inline struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *q, 75static inline struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *q,
76 int cpu) 76 unsigned int cpu)
77{ 77{
78 struct blk_mq_tag_set *set = q->tag_set; 78 struct blk_mq_tag_set *set = q->tag_set;
79 79
80 return q->queue_hw_ctx[set->map[0].mq_map[cpu]]; 80 return q->queue_hw_ctx[set->map[0].mq_map[cpu]];
81} 81}
82 82
83static inline struct blk_mq_hw_ctx *blk_mq_map_queue_type(struct request_queue *q,
84 unsigned int hctx_type,
85 unsigned int cpu)
86{
87 return blk_mq_map_queue(q, cpu);
88}
89
83/* 90/*
84 * sysfs helpers 91 * sysfs helpers
85 */ 92 */