Re: [PATCH v3 04/10] dm: cleanup close_table_device

From: Mike Snitzer
Date: Wed Nov 16 2022 - 16:48:15 EST


On Tue, Nov 15 2022 at 9:10P -0500,
Yu Kuai <yukuai1@xxxxxxxxxxxxxxx> wrote:

> From: Christoph Hellwig <hch@xxxxxx>
>
> Take the list unlink and free into close_table_device so that no half
> torn down table_devices exist. Also remove the check for a NULL bdev
> as that can't happen - open_table_device never adds a table_device to
> the list that does not have a valid block_device.
>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> Signed-off-by: Yu Kuai <yukuai3@xxxxxxxxxx>

Reviewed-by: Mike Snitzer <snitzer@xxxxxxxxxx>