On Wed, Jun 1, 2022 at 4:03 AM Chris Webb <chris@xxxxxxxxxxxx> wrote: > > Boot-time assembly of arrays with md= command-line arguments breaks when > CONFIG_BLOCK_LEGACY_AUTOLOAD is unset. md_setup_drive() in md-autodetect.c > calls blkdev_get_by_dev(), assuming this implicitly creates the block > device. > > Fix this by attempting to md_alloc() the array first. As in the probe path, > ignore any error as failure is caught by blkdev_get_by_dev() anyway. > > Signed-off-by: Chris Webb <chris@xxxxxxxxxxxx> > Reviewed-by: Christoph Hellwig <hch@xxxxxx> Applied to md-next. Thanks! Song