scsi: mpi3mr: Make driver probing asynchronously
Subsystems (2)
PATCH 1/1 scsi: mpi3mr: Make driver probing asynchronously
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.
--- drivers/scsi/mpi3mr/mpi3mr_os.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/scsi/mpi3mr/mpi3mr_os.c +4 -1
@@ -5983,7 +5983,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)
Signature · 1 line
2.32.0.3.g01195cf9f
Quoted 7 lines · Guixin Liu
Speed up the boot process by using the asynchronous probing feature supported by the kernel.
Set the
PROBE_PREFER_ASYNCHRONOUSflag in thedevice_driverstructure so that the driver core probes in parallel.Signed-off-by Guixin Liu <[email protected]>
Looks OK to me.
Signature · 2 lines
Damien Le Moal Western Digital Research
Martin K. Petersen
AppliedQuoted 8 lines · Guixin Liu
Speed up the boot process by using the asynchronous probing feature supported by the kernel.
Set the
PROBE_PREFER_ASYNCHRONOUSflag in thedevice_driverstructure so that the driver core probes in parallel.[...]
Applied to 6.20/scsi-queue, thanks!
[1/1] scsi: mpi3mr: Make driver probing asynchronously
https://git.kernel.org/mkp/scsi/c/21a16f0f0226
Signature · 1 line
Martin K. Petersen