Skip to contentSkip to conversation

blk-mq: Document tags_srcu member in blk_mq_tag_set structure

PATCH Applied Ming Lei 2 participants 2 messages Sep 9, 2025 Block layer

lore
Share & tools
lore

Ming Lei

author
#0 lore raw

PATCH 1/1 blk-mq: Document tags_srcu member in blk_mq_tag_set structure

Add missing documentation for the tags_srcu member that was introduced to defer freeing of tags page_list to prevent use-after-free when iterating tags.

Fixes htmldocs warning:

WARNING: include/linux/blk-mq.h:536 struct member 'tags_srcu' not described in 'blk_mq_tag_set'
---
 include/linux/blk-mq.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/blk-mq.h +2 -0
index 1325ceeb743a..b25d12545f46 100644
@@ -507,6 +507,8 @@ enum hctx_type {
  *		   request_queue.tag_set_list.
  * @srcu:	   Use as lock when type of the request queue is blocking
  *		   (BLK_MQ_F_BLOCKING).
+ * @tags_srcu:	   SRCU used to defer freeing of tags page_list to prevent
+ *		   use-after-free when iterating tags.
  * @update_nr_hwq_lock:
  * 		   Synchronize updating nr_hw_queues with add/del disk &
  * 		   switching elevator.
Signature · 1 line
2.47.1
maintainer Applied
#1 lore raw
Quoted 8 lines · Ming Lei

Add missing documentation for the tags_srcu member that was introduced to defer freeing of tags page_list to prevent use-after-free when iterating tags.

Fixes htmldocs warning:

WARNING: include/linux/blk-mq.h:536 struct member 'tags_srcu' not described in 'blk_mq_tag_set'

[...]

Applied, thanks!

[1/1] blk-mq: Document tags_srcu member in blk_mq_tag_set structure

      commit: 199c9a8d26638845f509b76e3c176c27e7baafd7

Best regards,

Signature · 1 line
Jens Axboe