Skip to contentSkip to conversation

blk-mq: Update blk_mq_map_queue() documentation

PATCH In review Daniel Wagner 2 participants 2 messages Feb 6, 2020 – Feb 7, 2020 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blk-mq: Update blk_mq_map_queue() documentation

Commit 8ccdf4a37752 ("blk-mq: save queue mapping result into ctx directly") changed the last argument name from cpu to ctx but missed to update the documentation.

---
 block/blk-mq.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-mq.h +1 -1
index eaaca8fc1c28..76921a970c32 100644
@@ -97,7 +97,7 @@ static inline struct blk_mq_hw_ctx *blk_mq_map_queue_type(struct request_queue *
  * blk_mq_map_queue() - map (cmd_flags,type) to hardware queue
  * @q: request queue
  * @flags: request command flags
- * @cpu: cpu ctx
+ * @ctx: software queue state
  */
 static inline struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *q,
 						     unsigned int flags,
Signature · 1 line
2.25.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Daniel Wagner

Commit 8ccdf4a37752 ("blk-mq: save queue mapping result into ctx directly") changed the last argument name from cpu to ctx but missed to update the documentation.

---
 block/blk-mq.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-mq.h +0 -0
index eaaca8fc1c28..76921a970c32 100644

block/blk-mq.h static inline struct blk_mq_hw_ctx *blk_mq_map_queue_type(struct request_queue * · line 103

Quoted 8 lines
block/blk-mq.h +1 -1
@@ -97,7 +97,7 @@ static inline struct blk_mq_hw_ctx *blk_mq_map_queue_type(struct request_queue *
  * blk_mq_map_queue() - map (cmd_flags,type) to hardware queue
  * @q: request queue
  * @flags: request command flags
- * @cpu: cpu ctx
+ * @ctx: software queue state
  */
 static inline struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *q,
 						     unsigned int flags,

Just "software queue" instead of "software queue state" probably would have been more clear. I think that's the name that is used elsewhere in the block layer. Anyway: