diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-05-15 07:18:14 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-05-23 16:44:14 -0400 |
commit | f0216ae9bd0ea8a45736f386a3b8058aefc64dd8 (patch) | |
tree | 8a78dfa0bdfa8987f8ce091fb88c0446aa6fbb4a /drivers/s390 | |
parent | f9da3be5afc08c40e7f7a395c8935d500a6898b1 (diff) |
[SCSI] zfcp: Use correct req_id for traces
The zfcp traces used the fsf_req address in place of the req_id.
Change this to save the correct req_id.
Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/scsi/zfcp_dbf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/s390/scsi/zfcp_dbf.c b/drivers/s390/scsi/zfcp_dbf.c index 0a1a5dd8d018..b99b87ce5a39 100644 --- a/drivers/s390/scsi/zfcp_dbf.c +++ b/drivers/s390/scsi/zfcp_dbf.c | |||
@@ -163,7 +163,7 @@ void zfcp_hba_dbf_event_fsf_response(struct zfcp_fsf_req *fsf_req) | |||
163 | } | 163 | } |
164 | 164 | ||
165 | response->fsf_command = fsf_req->fsf_command; | 165 | response->fsf_command = fsf_req->fsf_command; |
166 | response->fsf_reqid = (unsigned long)fsf_req; | 166 | response->fsf_reqid = fsf_req->req_id; |
167 | response->fsf_seqno = fsf_req->seq_no; | 167 | response->fsf_seqno = fsf_req->seq_no; |
168 | response->fsf_issued = fsf_req->issued; | 168 | response->fsf_issued = fsf_req->issued; |
169 | response->fsf_prot_status = qtcb->prefix.prot_status; | 169 | response->fsf_prot_status = qtcb->prefix.prot_status; |
@@ -737,7 +737,7 @@ void zfcp_san_dbf_event_ct_request(struct zfcp_fsf_req *fsf_req) | |||
737 | spin_lock_irqsave(&adapter->san_dbf_lock, flags); | 737 | spin_lock_irqsave(&adapter->san_dbf_lock, flags); |
738 | memset(r, 0, sizeof(*r)); | 738 | memset(r, 0, sizeof(*r)); |
739 | strncpy(r->tag, "octc", ZFCP_DBF_TAG_SIZE); | 739 | strncpy(r->tag, "octc", ZFCP_DBF_TAG_SIZE); |
740 | r->fsf_reqid = (unsigned long)fsf_req; | 740 | r->fsf_reqid = fsf_req->req_id; |
741 | r->fsf_seqno = fsf_req->seq_no; | 741 | r->fsf_seqno = fsf_req->seq_no; |
742 | r->s_id = fc_host_port_id(adapter->scsi_host); | 742 | r->s_id = fc_host_port_id(adapter->scsi_host); |
743 | r->d_id = wka_port->d_id; | 743 | r->d_id = wka_port->d_id; |
@@ -773,7 +773,7 @@ void zfcp_san_dbf_event_ct_response(struct zfcp_fsf_req *fsf_req) | |||
773 | spin_lock_irqsave(&adapter->san_dbf_lock, flags); | 773 | spin_lock_irqsave(&adapter->san_dbf_lock, flags); |
774 | memset(r, 0, sizeof(*r)); | 774 | memset(r, 0, sizeof(*r)); |
775 | strncpy(r->tag, "rctc", ZFCP_DBF_TAG_SIZE); | 775 | strncpy(r->tag, "rctc", ZFCP_DBF_TAG_SIZE); |
776 | r->fsf_reqid = (unsigned long)fsf_req; | 776 | r->fsf_reqid = fsf_req->req_id; |
777 | r->fsf_seqno = fsf_req->seq_no; | 777 | r->fsf_seqno = fsf_req->seq_no; |
778 | r->s_id = wka_port->d_id; | 778 | r->s_id = wka_port->d_id; |
779 | r->d_id = fc_host_port_id(adapter->scsi_host); | 779 | r->d_id = fc_host_port_id(adapter->scsi_host); |
@@ -803,7 +803,7 @@ static void zfcp_san_dbf_event_els(const char *tag, int level, | |||
803 | spin_lock_irqsave(&adapter->san_dbf_lock, flags); | 803 | spin_lock_irqsave(&adapter->san_dbf_lock, flags); |
804 | memset(rec, 0, sizeof(*rec)); | 804 | memset(rec, 0, sizeof(*rec)); |
805 | strncpy(rec->tag, tag, ZFCP_DBF_TAG_SIZE); | 805 | strncpy(rec->tag, tag, ZFCP_DBF_TAG_SIZE); |
806 | rec->fsf_reqid = (unsigned long)fsf_req; | 806 | rec->fsf_reqid = fsf_req->req_id; |
807 | rec->fsf_seqno = fsf_req->seq_no; | 807 | rec->fsf_seqno = fsf_req->seq_no; |
808 | rec->s_id = s_id; | 808 | rec->s_id = s_id; |
809 | rec->d_id = d_id; | 809 | rec->d_id = d_id; |
@@ -965,7 +965,7 @@ static void zfcp_scsi_dbf_event(const char *tag, const char *tag2, int level, | |||
965 | ZFCP_DBF_SCSI_FCP_SNS_INFO); | 965 | ZFCP_DBF_SCSI_FCP_SNS_INFO); |
966 | } | 966 | } |
967 | 967 | ||
968 | rec->fsf_reqid = (unsigned long)fsf_req; | 968 | rec->fsf_reqid = fsf_req->req_id; |
969 | rec->fsf_seqno = fsf_req->seq_no; | 969 | rec->fsf_seqno = fsf_req->seq_no; |
970 | rec->fsf_issued = fsf_req->issued; | 970 | rec->fsf_issued = fsf_req->issued; |
971 | } | 971 | } |