Skip to content

Commit

Permalink
md: open code md_probe in autorun_devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Aug 2, 2022
1 parent c0250d1 commit a110876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a110876

Please sign in to comment.