Re: [PATCH] block: fix wrong mode for blkdev_put() from disk_scan_partitions()

From: Jens Axboe
Date: Tue Mar 07 2023 - 09:30:35 EST



On Tue, 07 Mar 2023 18:55:52 +0800, Yu Kuai wrote:
> If disk_scan_partitions() is called with 'FMODE_EXCL',
> blkdev_get_by_dev() will be called without 'FMODE_EXCL', however, follow
> blkdev_put() is still called with 'FMODE_EXCL', which will cause
> 'bd_holders' counter to leak.
>
> Fix the problem by using the right mode for blkdev_put().
>
> [...]

Applied, thanks!

[1/1] block: fix wrong mode for blkdev_put() from disk_scan_partitions()
commit: 428913bce1e67ccb4dae317fd0332545bf8c9233

Best regards,
--
Jens Axboe