From: Christoph Hellwig Date: Sat, 23 Jul 2022 06:24:28 +0000 (+0200) Subject: md: open code md_probe in autorun_devices X-Git-Tag: howlett/maple/20220816~181^2~52 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a110876828f5de63be657c62a33c8f61ececfb33;p=users%2Fjedix%2Flinux-maple.git 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 --- diff --git a/drivers/md/md.c b/drivers/md/md.c index 2b2267be5c32..5671160ad398 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;