Re: [PATCH] block: blk-mq: fix ws_active refcount leak in blk_mq_mark_tag_wait()

From: Jens Axboe

Date: Tue May 26 2026 - 12:37:54 EST



On Tue, 26 May 2026 10:37:22 +0000, Wentao Liang wrote:
> blk_mq_mark_tag_wait() calls sbitmap_queue_get() which increments
> sbq->ws_active. On the error path where the waitqueue_active() check
> fails and the function returns early, sbq->ws_active is not decremented,
> leaking the reference.
>
> Fix this by calling sbitmap_queue_clear() to properly release the
> ws_active reference before returning on the error path.
>
> [...]

Applied, thanks!

[1/1] block: blk-mq: fix ws_active refcount leak in blk_mq_mark_tag_wait()
commit: 94028f339610f5d39d101449dc27156aea03b3cb

Best regards,
--
Jens Axboe