From: Bart Van Assche <bvanassche@acm.org>
To: Nilay Shroff <nilay@linux.ibm.com>,
axboe@kernel.dk, mt4022@columbia.edu, hch@lst.de,
mkhalfella@purestorage.com, kbusch@kernel.org,
josef@toxicpanda.com, tom.leiming@gmail.com, tz2294@columbia.edu,
gjoyce@linux.ibm.com
Cc: linux-block@vger.kernel.org
Subject: Re: [PATCH 1/3] block: remove RCU protection for tag_set_list
Date: Thu, 3 Dec 2026 08:41:37 -0800 [thread overview]
Message-ID: <6cebe190-b33e-47c7-81f0-e0d838cdd803@acm.org> (raw)
In-Reply-To: <20261203152318.654390-6-nilay@linux.ibm.com>
On 12/3/26 7:22 AM, Nilay Shroff wrote:
> Subject: [PATCH 1/3] block: remove RCU protection for tag_set_list
The list head is called set->tag_list. tag_set_list is the name of the
list entry in struct request_queue. Please consider changing the
subject into "block: remove RCU protection for set->tag_list".
> Commit 495f22c5a99a ("blk-mq: take quiesce_lock when removing a queue
> from the tag set") ensures that set->quiesce_lock serialize both
serialize -> serializes
> - /* blk_mq_unquiesce_tagset() runs the hctxs, which are not RCU freed */
> spin_lock(&set->quiesce_lock);
> - list_del_rcu(&q->tag_set_list);
> + list_del(&q->tag_set_list);
> spin_unlock(&set->quiesce_lock);
All set->tag_list modifications happen with both tag_list_lock and
quiesce_lock held and all code that iterates over that list holds one
of these two locks. Nothing uses q->tag_set_list after the queue has
been removed from the list, so switching from list_del_rcu() to
list_del() is fine. Hence, with the above nits addressed:
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
next prev parent reply other threads:[~2026-12-03 16:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 15:22 [PATCH 0/3] block: remove RCU protection and add context annotation Nilay Shroff
2026-12-03 15:22 ` [PATCH 1/3] block: remove RCU protection for tag_set_list Nilay Shroff
2026-12-03 16:41 ` Bart Van Assche [this message]
2026-12-03 15:22 ` [PATCH 2/3] block: remove unused blk_mq_free_sched_res_batch() Nilay Shroff
2026-12-03 16:42 ` Bart Van Assche
2026-12-03 15:22 ` [PATCH 3/3] block: add context annotations for tag_list_lock and quiesce_lock Nilay Shroff
2026-12-03 16:43 ` Bart Van Assche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6cebe190-b33e-47c7-81f0-e0d838cdd803@acm.org \
--to=bvanassche@acm.org \
--cc=axboe@kernel.dk \
--cc=gjoyce@linux.ibm.com \
--cc=hch@lst.de \
--cc=josef@toxicpanda.com \
--cc=kbusch@kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=mkhalfella@purestorage.com \
--cc=mt4022@columbia.edu \
--cc=nilay@linux.ibm.com \
--cc=tom.leiming@gmail.com \
--cc=tz2294@columbia.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox