Skip to content

Commit 21a16f0

Browse files
guixinliu1995martinkpetersen
authored andcommitted
scsi: mpi3mr: Make driver probing asynchronous
Speed up the boot process by using the asynchronous probing feature supported by the kernel. Set the PROBE_PREFER_ASYNCHRONOUS flag in the device_driver structure so that the driver core probes in parallel. Signed-off-by: Guixin Liu <kanie@linux.alibaba.com> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Link: https://patch.msgid.link/20260130080207.90053-1-kanie@linux.alibaba.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent f8ef441 commit 21a16f0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/scsi/mpi3mr/mpi3mr_os.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6079,7 +6079,10 @@ static struct pci_driver mpi3mr_pci_driver = {
60796079
.remove = mpi3mr_remove,
60806080
.shutdown = mpi3mr_shutdown,
60816081
.err_handler = &mpi3mr_err_handler,
6082-
.driver.pm = &mpi3mr_pm_ops,
6082+
.driver = {
6083+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
6084+
.pm = &mpi3mr_pm_ops,
6085+
},
60836086
};
60846087

60856088
static ssize_t event_counter_show(struct device_driver *dd, char *buf)

0 commit comments

Comments
 (0)