summaryrefslogtreecommitdiff
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-07-23 09:24:28 +0300
committerJens Axboe <axboe@kernel.dk>2022-08-03 02:22:46 +0300
commita110876828f5de63be657c62a33c8f61ececfb33 (patch)
tree3a5e4e18663ab1aae9444c6e71162715eb993387 /drivers/md/md.c
parentc0250d16b22e6c1cf074720b386280c03eebff87 (diff)
downloadlinux-a110876828f5de63be657c62a33c8f61ececfb33.tar.xz
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 <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-and-tested-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Song Liu <song@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c2
1 files changed, 1 insertions, 1 deletions
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;