scsi: megaraid_sas: Introduce module parameter for default queue depth
authorChandrakanth Patil <chandrakanth.patil@broadcom.com>
Fri, 26 Jul 2019 07:32:14 +0000 (13:02 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Aug 2019 01:40:37 +0000 (21:40 -0400)
commit9ab089d30bcf09d154c0da78920c13b581d23286
treebe8c6a93576eccdf5232582eb80aeaf80cf88881
parentd1436e456b840162eb4d162f99055d2adb79a566
scsi: megaraid_sas: Introduce module parameter for default 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 value
suggested by firmware (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 value reported by
firmware. The module parameter can provide an interface for one time grub
settings and provides persistent settings across the boot.

[mkp: tweaked commit desc]

Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas.h
drivers/scsi/megaraid/megaraid_sas_base.c