Commit a1108768 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-and-tested-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Signed-off-by: default avatarSong Liu <song@kernel.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c0250d16
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;