Re: [PATCH] block: fix leaking minors of hidden disks

Keith Busch
2022-10-10T13:34:47Z

On Mon, Oct 10, 2022 at 3:19 PM Christoph Hellwig <hch@lst.de> wrote:
>
> The major/minor of a hidden gendisk is not propagated to the block
> device because it is never registered using bdev_add. But the lack of
> bd_dev also causes the dynamic major minor number not to be freed.
> Assign bd_dev manually to ensure the dynamic major minor gets freed.

Looks good.

Reviewed-by: Keith Busch <kbusch@kernel.org>