Skip to content

Commit a110876

Browse files
Christoph Hellwigaxboe
authored andcommitted
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 <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-and-tested-by: Logan Gunthorpe <[email protected]> Signed-off-by: Song Liu <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent c0250d1 commit a110876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/md.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6500,7 +6500,7 @@ static void autorun_devices(int part)
65006500
break;
65016501
}
65026502

6503-
md_probe(dev);
6503+
md_alloc(dev, NULL);
65046504
mddev = mddev_find(dev);
65056505
if (!mddev)
65066506
break;

0 commit comments

Comments
 (0)