Commit def11a58 authored by James Smart's avatar James Smart Committed by Martin K. Petersen

scsi: lpfc: Fix location of SCSI ktime counters

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: 0794d601 ("scsi: lpfc: Implement common IO buffers between NVME and SCSI")
Signed-off-by: default avatarDick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: default avatarJames Smart <jsmart2021@gmail.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent c95a3b4b
...@@ -427,7 +427,8 @@ struct lpfc_io_buf { ...@@ -427,7 +427,8 @@ struct lpfc_io_buf {
struct { struct {
struct nvmefc_fcp_req *nvmeCmd; struct nvmefc_fcp_req *nvmeCmd;
uint16_t qidx; uint16_t qidx;
};
};
#ifdef CONFIG_SCSI_LPFC_DEBUG_FS #ifdef CONFIG_SCSI_LPFC_DEBUG_FS
uint64_t ts_cmd_start; uint64_t ts_cmd_start;
uint64_t ts_last_cmd; uint64_t ts_last_cmd;
...@@ -435,6 +436,4 @@ struct lpfc_io_buf { ...@@ -435,6 +436,4 @@ struct lpfc_io_buf {
uint64_t ts_isr_cmpl; uint64_t ts_isr_cmpl;
uint64_t ts_data_nvme; uint64_t ts_data_nvme;
#endif #endif
};
};
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment