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

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
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment