Skip to content

Commit ff2c566

Browse files
committed
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>
1 parent ed76e32 commit ff2c566

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎block/blk-mq.h‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,20 @@ void blk_mq_try_issue_list_directly(struct blk_mq_hw_ctx *hctx,
7373
extern int blk_mq_hw_queue_to_node(struct blk_mq_queue_map *qmap, unsigned int);
7474

7575
static inline struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *q,
76-
int cpu)
76+
unsigned int cpu)
7777
{
7878
struct blk_mq_tag_set *set = q->tag_set;
7979

8080
return q->queue_hw_ctx[set->map[0].mq_map[cpu]];
8181
}
8282

83+
static 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+
8390
/*
8491
* sysfs helpers
8592
*/

0 commit comments

Comments
 (0)