]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - drivers/scsi/mpt3sas/mpt3sas_scsih.c
scsi: mpt3sas: Introduce module parameter to override queue depth
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Thu, 22 Aug 2019 06:19:01 +0000 (02:19 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Aug 2019 21:55:53 +0000 (17:55 -0400)
commit8dc8d29a00e29c679f027102fb9c6709347ca8ca
tree3e74b9f9a7fa755c7eb81030a949e7847c755f6d
parentdd93b143706c636d3dfefe6cf355065d748b2473
scsi: mpt3sas: Introduce module parameter to override queue depth

This patch provides a module parameter and sysfs interface to select
whether the queue depth for each device should be based on the
protocol-specific value set by the driver (the default) or the maximum
supported by the controller (can_queue).

Although we have a sysfs interface per sdev to change the queue depth
of individual scsi devices, this implementation provides a single
sysfs entry per shost to switch between the controller max and the
driver default.

[mkp: tweaked commit desc]

Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.h
drivers/scsi/mpt3sas/mpt3sas_ctl.c
drivers/scsi/mpt3sas/mpt3sas_scsih.c