From 39e6a6004feeb4b7dbb9496a88f485307432d6dc Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Sat, 23 Jul 2022 08:24:28 +0200 Subject: [PATCH] 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 Reviewed-by: Hannes Reinecke Reviewed-and-tested-by: Logan Gunthorpe Signed-off-by: Song Liu Signed-off-by: Jens Axboe --- drivers/md/md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index 2b2267be5c329..5671160ad3982 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -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; -- 2.39.5