Re: [PATCH v1] scsi: storvsc: Cap cmd_per_lun at can_queue

2021-03-08 Thread Melanie Plageman
On Mon, Mar 08, 2021 at 02:37:40PM +, Michael Kelley wrote: > From: Melanie Plageman (Microsoft) Sent: Friday, > March 5, 2021 3:22 PM > > > > The scsi_device->queue_depth is set to Scsi_Host->cmd_per_lun during > > allocation. > > > > Cap cmd_per

[PATCH v1] scsi: storvsc: Cap cmd_per_lun at can_queue

2021-03-05 Thread Melanie Plageman (Microsoft)
The scsi_device->queue_depth is set to Scsi_Host->cmd_per_lun during allocation. Cap cmd_per_lun at can_queue to avoid dispatch errors. Signed-off-by: Melanie Plageman (Microsoft) --- drivers/scsi/storvsc_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/storvsc_d

[PATCH v4] scsi: storvsc: Parameterize number hardware queues

2021-02-24 Thread Melanie Plageman (Microsoft)
performance. Signed-off-by: Melanie Plageman (Microsoft) --- Updated since v3: - permissions in octal - param type changed to unsigned int - removed value checking from module init function - simplified value checking logic in probe function drivers/scsi/storvsc_drv.c | 18 -- 1 file

Re: [PATCH v3] scsi: storvsc: Parameterize number hardware queues

2021-02-17 Thread Melanie Plageman
On Fri, Feb 12, 2021 at 04:35:16PM +, Michael Kelley wrote: > From: Melanie Plageman Sent: Thursday, February > 11, 2021 3:18 PM > > > > Add ability to set the number of hardware queues with new module parameter, > > storvsc_max_hw_queues. The default value re

[PATCH v3] scsi: storvsc: Parameterize number hardware queues

2021-02-11 Thread Melanie Plageman
From: "Melanie Plageman (Microsoft)" Add ability to set the number of hardware queues with new module parameter, storvsc_max_hw_queues. The default value remains the number of CPUs. This functionality is useful in some environments (e.g. Microsoft Azure) where decreasing the number o