Re: [PATCH 07/10] md: add error handling support for add_disk()

From: Christoph Hellwig
Date: Tue Aug 24 2021 - 02:18:50 EST


On Mon, Aug 23, 2021 at 01:29:27PM -0700, Luis Chamberlain wrote:
> We never checked for errors on add_disk() as this function
> returned void. Now that this is fixed, use the shiny new
> error handling.
>
> We just do the unwinding of what was not done before, and are
> sure to unlock prior to bailing.
>
> Signed-off-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>

Looks good,

Reviewed-by: Christoph Hellwig <hch@xxxxxx>