md: open code md_probe in autorun_devices
authorChristoph Hellwig <hch@lst.de>
Sat, 23 Jul 2022 06:24:28 +0000 (08:24 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:46 +0000 (17:22 -0600)
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>
drivers/md/md.c

index 2b2267b..5671160 100644 (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;