md: open code md_probe in autorun_devices

autorun_devices should not be limited to the controls for the legacy
probe on open, so just call md_alloc directly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-and-tested-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Christoph Hellwig 2022-07-23 08:24:28 +02:00 committed by Jens Axboe
parent c0250d16b2
commit a110876828
1 changed files with 1 additions and 1 deletions

View File

@ -6500,7 +6500,7 @@ static void autorun_devices(int part)
break;
}
md_probe(dev);
md_alloc(dev, NULL);
mddev = mddev_find(dev);
if (!mddev)
break;