diff options
| author | Guixin Liu <kanie@linux.alibaba.com> | 2026-01-30 16:02:07 +0800 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2026-02-03 22:19:56 -0500 |
| commit | 21a16f0f02263db5a1bc4739036abca698b8808f (patch) | |
| tree | 53b68f8e177bac597438532fe929bdda0a7ec433 /drivers/scsi | |
| parent | f8ef441811ec413717f188f63d99182f30f0f08e (diff) | |
| download | linux-next-21a16f0f02263db5a1bc4739036abca698b8808f.tar.gz linux-next-21a16f0f02263db5a1bc4739036abca698b8808f.zip | |
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>
Diffstat (limited to 'drivers/scsi')
| -rw-r--r-- | drivers/scsi/mpi3mr/mpi3mr_os.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/mpi3mr/mpi3mr_os.c b/drivers/scsi/mpi3mr/mpi3mr_os.c index e697ae6b7871..8e5abf620718 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_os.c +++ b/drivers/scsi/mpi3mr/mpi3mr_os.c @@ -6079,7 +6079,10 @@ static struct pci_driver mpi3mr_pci_driver = { .remove = mpi3mr_remove, .shutdown = mpi3mr_shutdown, .err_handler = &mpi3mr_err_handler, - .driver.pm = &mpi3mr_pm_ops, + .driver = { + .probe_type = PROBE_PREFER_ASYNCHRONOUS, + .pm = &mpi3mr_pm_ops, + }, }; static ssize_t event_counter_show(struct device_driver *dd, char *buf) |
