diff options
author | Christoph Hellwig <hch@lst.de> | 2022-07-23 08:24:28 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-08-03 01:22:46 +0200 |
commit | a110876828f5de63be657c62a33c8f61ececfb33 (patch) | |
tree | 3a5e4e18663ab1aae9444c6e71162715eb993387 | |
parent | md: remove unneeded semicolon (diff) | |
download | linux-a110876828f5de63be657c62a33c8f61ececfb33.tar.xz linux-a110876828f5de63be657c62a33c8f61ececfb33.zip |
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>
-rw-r--r-- | drivers/md/md.c | 2 |
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; |