Skip to contentSkip to conversation

scsi: storvsc: Increase cmd_per_lun for higher speed devices

PATCH Applied Michael Kelley (EOSG) 3 participants 4 messages Jan 24, 2018 – Feb 7, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: storvsc: Increase cmd_per_lun for higher speed devices

Increase cmd_per_lun to allow more I/Os in progress per device, particularly for NVMe's. The Hyper-V host side can handle the higher count with no issues.

---
 drivers/scsi/storvsc_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/storvsc_drv.c +1 -1
index f3264c4..6205107 100644
@@ -1657,7 +1657,7 @@ static int storvsc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scmnd)
 	.eh_timed_out =		storvsc_eh_timed_out,
 	.slave_alloc =		storvsc_device_alloc,
 	.slave_configure =	storvsc_device_configure,
-	.cmd_per_lun =		255,
+	.cmd_per_lun =		2048,
 	.this_id =		-1,
 	.use_clustering =	ENABLE_CLUSTERING,
 	/* Make sure we dont get a sg segment crosses a page boundary */
Signature · 5 lines
1.8.3.1
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
#1 lore raw
Quoted 4 lines

Increase cmd_per_lun to allow more I/Os in progress per device, particularly for NVMe's. The Hyper-V host side can handle the higher count with no issues.

Long/KY/Cathy/Stephen: Please ack/review Michael's patches.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering
Reviewed-by Acked-by on v1 1/1
#2 lore raw
In reply to Michael Kelley (EOSG)
Quoted 14 lines

-----Original Message-----
From: Michael Kelley (EOSG)
Sent: Wednesday, January 24, 2018 2:50 PM
To: KY Srinivasan <[email protected]>; Stephen Hemminger <[email protected]>; [email protected]; Long Li <[email protected]>; [email protected]; [email protected]; [email protected]; linux- [email protected]
Cc: Michael Kelley (EOSG) <[email protected]>
Subject: [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices

Quoted 5 lines

Increase cmd_per_lun to allow more I/Os in progress per device, particularly for NVMe's. The Hyper-V host side can handle the higher count with no issues.

Thanks,

K. Y

Quoted 20 lines
---
 drivers/scsi/storvsc_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/storvsc_drv.c +1 -1
index f3264c4..6205107 100644
@@ -1657,7 +1657,7 @@ static int storvsc_queuecommand(struct Scsi_Host
 *host, struct scsi_cmnd *scmnd)
 	.eh_timed_out =		storvsc_eh_timed_out,
 	.slave_alloc =		storvsc_device_alloc,
 	.slave_configure =	storvsc_device_configure,
-	.cmd_per_lun =		255,
+	.cmd_per_lun =		2048,
 	.this_id =		-1,
 	.use_clustering =	ENABLE_CLUSTERING,

/* Make sure we dont get a sg segment crosses a page boundary */
--
1.8.3.1

#3 lore raw
In reply to Michael Kelley (EOSG)

Michael,

Quoted 3 lines

Increase cmd_per_lun to allow more I/Os in progress per device, particularly for NVMe's. The Hyper-V host side can handle the higher count with no issues.

Applied to 4.16/scsi-fixes. Thank you!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering