diff options
author | Quinn Tran <qutran@marvell.com> | 2020-09-03 21:51:22 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-09-22 18:42:45 -0400 |
commit | 49db4d4e02aabcd4fa2f60142ef42e50fb2dd526 (patch) | |
tree | 886dac8cb11bf055764fb96c66080d800d040cdf /drivers/scsi/qla2xxx/qla_init.c | |
parent | d38cb849e17a34637b97ce57c550ec70d63dd39a (diff) | |
download | linux-49db4d4e02aabcd4fa2f60142ef42e50fb2dd526.tar.gz linux-49db4d4e02aabcd4fa2f60142ef42e50fb2dd526.tar.bz2 linux-49db4d4e02aabcd4fa2f60142ef42e50fb2dd526.zip |
scsi: qla2xxx: Performance tweak
Move statistics fields from vha struct to qpair to reduce memory thrashing.
Link: https://lore.kernel.org/r/20200904045128.23631-8-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 5051888a2416..a2914e328a3b 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -3700,9 +3700,7 @@ execute_fw_with_lr: goto execute_fw_with_lr; } - if ((IS_QLA83XX(ha) || IS_QLA27XX(ha) || - IS_QLA28XX(ha)) && - (ha->zio_mode == QLA_ZIO_MODE_6)) + if (IS_ZIO_THRESHOLD_CAPABLE(ha)) qla27xx_set_zio_threshold(vha, ha->last_zio_threshold); |