public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices
@ 2018-01-24 22:49 Michael Kelley (EOSG)
  2018-01-31  3:06 ` Martin K. Petersen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Kelley (EOSG) @ 2018-01-24 22:49 UTC (permalink / raw)
  To: KY Srinivasan, Stephen Hemminger, martin.petersen@oracle.com,
	Long Li, jejb@linux.vnet.ibm.com, devel@linuxdriverproject.org,
	linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
  Cc: Michael Kelley (EOSG)

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.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
---
 drivers/scsi/storvsc_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index f3264c4..6205107 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices
  2018-01-24 22:49 [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices Michael Kelley (EOSG)
@ 2018-01-31  3:06 ` Martin K. Petersen
  2018-01-31 18:34 ` KY Srinivasan
  2018-02-07  0:39 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2018-01-31  3:06 UTC (permalink / raw)
  To: Michael Kelley (EOSG)
  Cc: KY Srinivasan, Stephen Hemminger, martin.petersen@oracle.com,
	Long Li, jejb@linux.vnet.ibm.com, devel@linuxdriverproject.org,
	linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org


> 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.

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices
  2018-01-24 22:49 [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices Michael Kelley (EOSG)
  2018-01-31  3:06 ` Martin K. Petersen
@ 2018-01-31 18:34 ` KY Srinivasan
  2018-02-07  0:39 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: KY Srinivasan @ 2018-01-31 18:34 UTC (permalink / raw)
  To: Michael Kelley (EOSG), Stephen Hemminger,
	martin.petersen@oracle.com, Long Li, jejb@linux.vnet.ibm.com,
	devel@linuxdriverproject.org, linux-kernel@vger.kernel.org,
	linux-scsi@vger.kernel.org



> -----Original Message-----
> From: Michael Kelley (EOSG)
> Sent: Wednesday, January 24, 2018 2:50 PM
> To: KY Srinivasan <kys@microsoft.com>; Stephen Hemminger
> <sthemmin@microsoft.com>; martin.petersen@oracle.com; Long Li
> <longli@microsoft.com>; jejb@linux.vnet.ibm.com;
> devel@linuxdriverproject.org; linux-kernel@vger.kernel.org; linux-
> scsi@vger.kernel.org
> Cc: Michael Kelley (EOSG) <Michael.H.Kelley@microsoft.com>
> Subject: [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.
> 
> Signed-off-by: Michael Kelley <mikelley@microsoft.com>

Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Acked-by: K. Y. Srinivasan <kys@microsoft.com>

Thanks,

K. Y
> ---
>  drivers/scsi/storvsc_drv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> index f3264c4..6205107 100644
> --- a/drivers/scsi/storvsc_drv.c
> +++ b/drivers/scsi/storvsc_drv.c
> @@ -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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices
  2018-01-24 22:49 [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices Michael Kelley (EOSG)
  2018-01-31  3:06 ` Martin K. Petersen
  2018-01-31 18:34 ` KY Srinivasan
@ 2018-02-07  0:39 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2018-02-07  0:39 UTC (permalink / raw)
  To: Michael Kelley (EOSG)
  Cc: jejb@linux.vnet.ibm.com, linux-scsi@vger.kernel.org,
	martin.petersen@oracle.com, linux-kernel@vger.kernel.org,
	devel@linuxdriverproject.org, Stephen Hemminger


Michael,

> 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!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-02-07  0:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-24 22:49 [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices Michael Kelley (EOSG)
2018-01-31  3:06 ` Martin K. Petersen
2018-01-31 18:34 ` KY Srinivasan
2018-02-07  0:39 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox