On Mon, Oct 10, 2022 at 3:19 PM Christoph Hellwig <hch@xxxxxx> 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@xxxxxxxxxx>