Skip to content

Commit 85f211e

Browse files
author
Ming Lei
committed
blk-mq: Document tags_srcu member in blk_mq_tag_set structure
JIRA: https://issues.redhat.com/browse/RHEL-120078 commit 199c9a8 Author: Ming Lei <ming.lei@redhat.com> Date: Tue Sep 9 20:33:10 2025 +0800 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' Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Ming Lei <ming.lei@redhat.com>
1 parent 93221f3 commit 85f211e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/blk-mq.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,8 @@ enum hctx_type {
507507
* request_queue.tag_set_list.
508508
* @srcu: Use as lock when type of the request queue is blocking
509509
* (BLK_MQ_F_BLOCKING).
510+
* @tags_srcu: SRCU used to defer freeing of tags page_list to prevent
511+
* use-after-free when iterating tags.
510512
* @update_nr_hwq_lock:
511513
* Synchronize updating nr_hw_queues with add/del disk &
512514
* switching elevator.

0 commit comments

Comments
 (0)