Skip to content

Commit 251d9d8

Browse files
steffen-maiermarcelocerri
authored andcommitted
scsi: zfcp: trace channel log even for FCP command responses
BugLink: https://bugs.launchpad.net/bugs/1856869 commit 100843f upstream. While v2.6.26 commit b75db73 ("[SCSI] zfcp: Add qtcb dump to hba debug trace") is right that we don't want to flood the (payload) trace ring buffer, we don't trace successful FCP command responses by default. So we can include the channel log for problem determination with failed responses of any FSF request type. Fixes: b75db73 ("[SCSI] zfcp: Add qtcb dump to hba debug trace") Fixes: a54ca0f ("[SCSI] zfcp: Redesign of the debug tracing for HBA records.") Cc: <[email protected]> #2.6.38+ Link: https://lore.kernel.org/r/e37597b5c4ae123aaa85fd86c23a9f71e994e4a9.1572018132.git.bblock@linux.ibm.com Reviewed-by: Benjamin Block <[email protected]> Signed-off-by: Steffen Maier <[email protected]> Signed-off-by: Benjamin Block <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Connor Kuehl <[email protected]> Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
1 parent 66535fe commit 251d9d8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

drivers/s390/scsi/zfcp_dbf.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,9 @@ void zfcp_dbf_hba_fsf_res(char *tag, int level, struct zfcp_fsf_req *req)
9595
memcpy(rec->u.res.fsf_status_qual, &q_head->fsf_status_qual,
9696
FSF_STATUS_QUALIFIER_SIZE);
9797

98-
if (q_head->fsf_command != FSF_QTCB_FCP_CMND) {
99-
rec->pl_len = q_head->log_length;
100-
zfcp_dbf_pl_write(dbf, (char *)q_pref + q_head->log_start,
101-
rec->pl_len, "fsf_res", req->req_id);
102-
}
98+
rec->pl_len = q_head->log_length;
99+
zfcp_dbf_pl_write(dbf, (char *)q_pref + q_head->log_start,
100+
rec->pl_len, "fsf_res", req->req_id);
103101

104102
debug_event(dbf->hba, level, rec, sizeof(*rec));
105103
spin_unlock_irqrestore(&dbf->hba_lock, flags);

0 commit comments

Comments
 (0)