提交 a1108768 编写于 作者: C Christoph Hellwig 提交者: 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: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NHannes Reinecke <hare@suse.de>
Reviewed-and-tested-by: NLogan Gunthorpe <logang@deltatee.com>
Signed-off-by: NSong Liu <song@kernel.org>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册