aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blk-mq.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-09-14 10:18:54 -0400
committerJens Axboe <axboe@fb.com>2016-09-15 10:42:03 -0400
commit7d7e0f90b70f6c5367c2d1c9a7e87dd228bd0816 (patch)
tree6105df4466a36e85a24ead3b67a35d31f9f37011 /include/linux/blk-mq.h
parentbdd17e75cd97c5c39feee409890a91d0396640fe (diff)
blk-mq: remove ->map_queue
All drivers use the default, so provide an inline version of it. If we ever need other queue mapping we can add an optional method back, although supporting will also require major changes to the queue setup code. This provides better code generation, and better debugability as well. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r--include/linux/blk-mq.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
index deda16a9bde4..f01379f2b0ac 100644
--- a/include/linux/blk-mq.h
+++ b/include/linux/blk-mq.h
@@ -91,7 +91,6 @@ struct blk_mq_queue_data {
91}; 91};
92 92
93typedef int (queue_rq_fn)(struct blk_mq_hw_ctx *, const struct blk_mq_queue_data *); 93typedef int (queue_rq_fn)(struct blk_mq_hw_ctx *, const struct blk_mq_queue_data *);
94typedef struct blk_mq_hw_ctx *(map_queue_fn)(struct request_queue *, const int);
95typedef enum blk_eh_timer_return (timeout_fn)(struct request *, bool); 94typedef enum blk_eh_timer_return (timeout_fn)(struct request *, bool);
96typedef int (init_hctx_fn)(struct blk_mq_hw_ctx *, void *, unsigned int); 95typedef int (init_hctx_fn)(struct blk_mq_hw_ctx *, void *, unsigned int);
97typedef void (exit_hctx_fn)(struct blk_mq_hw_ctx *, unsigned int); 96typedef void (exit_hctx_fn)(struct blk_mq_hw_ctx *, unsigned int);
@@ -114,11 +113,6 @@ struct blk_mq_ops {
114 queue_rq_fn *queue_rq; 113 queue_rq_fn *queue_rq;
115 114
116 /* 115 /*
117 * Map to specific hardware queue
118 */
119 map_queue_fn *map_queue;
120
121 /*
122 * Called on request timeout 116 * Called on request timeout
123 */ 117 */
124 timeout_fn *timeout; 118 timeout_fn *timeout;
@@ -223,7 +217,6 @@ static inline u16 blk_mq_unique_tag_to_tag(u32 unique_tag)
223 return unique_tag & BLK_MQ_UNIQUE_TAG_MASK; 217 return unique_tag & BLK_MQ_UNIQUE_TAG_MASK;
224} 218}
225 219
226struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *, const int ctx_index);
227 220
228int blk_mq_request_started(struct request *rq); 221int blk_mq_request_started(struct request *rq);
229void blk_mq_start_request(struct request *rq); 222void blk_mq_start_request(struct request *rq);