diff mbox

[1/1] qla2xxx: Allow SCSI-MQ to be enabled selectively

Message ID 20180517035411.3429-1-himanshu.madhani@cavium.com (mailing list archive)
State Rejected
Headers show

Commit Message

Madhani, Himanshu May 17, 2018, 3:54 a.m. UTC
when ql2xmqsupport=1, use that value to selectively
enable SCSI-MQ

Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
---
 drivers/scsi/qla2xxx/qla_os.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Christoph Hellwig May 17, 2018, 7:30 a.m. UTC | #1
On Wed, May 16, 2018 at 08:54:11PM -0700, Himanshu Madhani wrote:
> when ql2xmqsupport=1, use that value to selectively
> enable SCSI-MQ

NAK.  This is not something that we should grow driver parameters for.

Btw, should we look into enabling blk-mq by default again now that
all the performance fixes went in and srttled down?
diff mbox

Patch

diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 817c18a8e84d..f870e85be38f 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -4566,6 +4566,7 @@  struct scsi_qla_host *qla2x00_create_host(struct scsi_host_template *sht,
 		return NULL;
 	}
 
+	host->use_blk_mq = ql2xmqsupport ? true : false;
 	/* Clear our data area */
 	vha = shost_priv(host);
 	memset(vha, 0, sizeof(scsi_qla_host_t));