Re: [PATCH v2] blk-throttle: fix throtl_data leak during disk release

From: Jens Axboe
Date: Wed Sep 17 2025 - 09:33:49 EST



On Wed, 17 Sep 2025 15:55:39 +0800, Yu Kuai wrote:
> Tightening the throttle activation check in blk_throtl_activated() to
> require both q->td presence and policy bit set introduced a memory leak
> during disk release:
>
> blkg_destroy_all() clears the policy bit first during queue deactivation,
> causing subsequent blk_throtl_exit() to skip throtl_data cleanup when
> blk_throtl_activated() fails policy check.
>
> [...]

Applied, thanks!

[1/1] blk-throttle: fix throtl_data leak during disk release
(no commit info)

Best regards,
--
Jens Axboe