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

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
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -427,7 +427,8 @@ 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;
@@ -436,5 +437,3 @@ struct lpfc_io_buf {
	uint64_t ts_data_nvme;
#endif
};
	};
};