scsi: lpfc: Fix location of SCSI ktime counters
authorJames Smart <jsmart2021@gmail.com>
Tue, 12 Mar 2019 23:30:08 +0000 (16:30 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 16:57:02 +0000 (12:57 -0400)
The debug ktime counters that trace an io were inadvertently not placed in
the common section of an io buffer. Thus, they generate an invalid opcode
error when accessed.

Move the ktime counters into the common area.

Fixes: 0794d601d174 ("scsi: lpfc: Implement common IO buffers between NVME and SCSI")
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.h

index 7a1a761efdd6acfcb607bb85f3ac001796220dab..1153a6c91bde69bfec76101a184f12f6a891148d 100644 (file)
@@ -427,14 +427,13 @@ struct lpfc_io_buf {
                struct {
                        struct nvmefc_fcp_req *nvmeCmd;
                        uint16_t qidx;
-
-#ifdef CONFIG_SCSI_LPFC_DEBUG_FS
-                       uint64_t ts_cmd_start;
-                       uint64_t ts_last_cmd;
-                       uint64_t ts_cmd_wqput;
-                       uint64_t ts_isr_cmpl;
-                       uint64_t ts_data_nvme;
-#endif
                };
        };
+#ifdef CONFIG_SCSI_LPFC_DEBUG_FS
+       uint64_t ts_cmd_start;
+       uint64_t ts_last_cmd;
+       uint64_t ts_cmd_wqput;
+       uint64_t ts_isr_cmpl;
+       uint64_t ts_data_nvme;
+#endif
 };