Skip to contentSkip to conversation

scsi: mpi3mr: Make driver probing asynchronously

PATCH Applied Guixin Liu 3 participants 3 messages Jan 30 – Feb 8

Subsystems (2)
lore
Share & tools
lore

Guixin Liu

author
#0 lore raw

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
index d4ca878d0886..99fb37fa4f6b 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Guixin Liu

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.

Looks OK to me.

Signature · 2 lines
Damien Le Moal
Western Digital Research
#2 lore raw
In reply to Guixin Liu
Quoted 8 lines · Guixin Liu

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.

[...]

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