Re: [PATCH v2] blk-mq: take quiesce_lock when removing a queue from the tag set
From: Jens Axboe
Date: Wed Nov 18 2026 - 11:09:52 EST
On Fri, 06 Nov 2026 11:53:21 -0500, Mani Tofigh wrote:
> Unquiescing a tag set can run the hw queues of a queue whose hctxs were
> already freed. blk_mq_unquiesce_tagset() walks the tag set's queues
> under quiesce_lock and rcu_read_lock(). Commit 71ec3c7d6db8 ("blk-mq:
> quiesce a queue that joins a quiesced tag set") added quiesce_lock to
> the walks and to adding a queue, but blk_mq_del_queue_tag_set() still
> removes a queue without it. The hctxs are then freed right away since
> RCU only keeps the request_queue itself alive:
>
> [...]
Applied, thanks!
[1/1] blk-mq: take quiesce_lock when removing a queue from the tag set
commit: 495f22c5a99ac38e527294cdc4f3972718b9bee0
Best regards,
--
Jens Axboe