[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20181004102909.12308-1-yuehaibing@huawei.com>
Date: Thu, 4 Oct 2018 18:29:09 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <james.smart@...adcom.com>, <dick.kennedy@...adcom.com>,
<jejb@...ux.vnet.ibm.com>, <martin.petersen@...cle.com>
CC: <linux-kernel@...r.kernel.org>, <linux-scsi@...r.kernel.org>,
YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH -next] scsi: lpfc: use correct maxch in lpfc_debugfs_nvmestat_data
'maxch' should be used rather than 'phba->cfg_nvme_io_channel'
Fixes:66a210ffb877 ("scsi: lpfc: Add per io channel NVME IO statistics")
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
drivers/scsi/lpfc/lpfc_debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c
index aec5b10..fe1ec0e 100644
--- a/drivers/scsi/lpfc/lpfc_debugfs.c
+++ b/drivers/scsi/lpfc/lpfc_debugfs.c
@@ -923,7 +923,7 @@ lpfc_debugfs_nvmestat_data(struct lpfc_vport *vport, char *buf, int size)
maxch = 32;
totin = 0;
totout = 0;
- for (i = 0; i < phba->cfg_nvme_io_channel; i++) {
+ for (i = 0; i < maxch; i++) {
cstat = &lport->cstat[i];
tot = atomic_read(&cstat->fc4NvmeIoCmpls);
totin += tot;
--
2.7.0
Powered by blists - more mailing lists