[SCSI] zfcp: Redesign of the debug tracing for HBA records.
This patch is the continuation to redesign the zfcp tracing to a more straight-forward and easy to extend scheme. This patch deals with all trace records of the zfcp HBA area. Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:

zatwierdzone przez
James Bottomley

rodzic
2c55b750a8
commit
a54ca0f62f
@@ -211,13 +211,13 @@ static void zfcp_fsf_status_read_handler(struct zfcp_fsf_req *req)
|
||||
struct fsf_status_read_buffer *sr_buf = req->data;
|
||||
|
||||
if (req->status & ZFCP_STATUS_FSFREQ_DISMISSED) {
|
||||
zfcp_dbf_hba_fsf_unsol("dism", adapter->dbf, sr_buf);
|
||||
zfcp_dbf_hba_fsf_uss("fssrh_1", req);
|
||||
mempool_free(sr_buf, adapter->pool.status_read_data);
|
||||
zfcp_fsf_req_free(req);
|
||||
return;
|
||||
}
|
||||
|
||||
zfcp_dbf_hba_fsf_unsol("read", adapter->dbf, sr_buf);
|
||||
zfcp_dbf_hba_fsf_uss("fssrh_2", req);
|
||||
|
||||
switch (sr_buf->status_type) {
|
||||
case FSF_STATUS_READ_PORT_CLOSED:
|
||||
@@ -232,7 +232,7 @@ static void zfcp_fsf_status_read_handler(struct zfcp_fsf_req *req)
|
||||
dev_warn(&adapter->ccw_device->dev,
|
||||
"The error threshold for checksum statistics "
|
||||
"has been exceeded\n");
|
||||
zfcp_dbf_hba_berr(adapter->dbf, req);
|
||||
zfcp_dbf_hba_bit_err("fssrh_3", req);
|
||||
break;
|
||||
case FSF_STATUS_READ_LINK_DOWN:
|
||||
zfcp_fsf_status_read_link_down(req);
|
||||
@@ -754,10 +754,11 @@ int zfcp_fsf_status_read(struct zfcp_qdio *qdio)
|
||||
goto out;
|
||||
|
||||
failed_req_send:
|
||||
req->data = NULL;
|
||||
mempool_free(sr_buf, adapter->pool.status_read_data);
|
||||
failed_buf:
|
||||
zfcp_dbf_hba_fsf_uss("fssr__1", req);
|
||||
zfcp_fsf_req_free(req);
|
||||
zfcp_dbf_hba_fsf_unsol("fail", adapter->dbf, NULL);
|
||||
out:
|
||||
spin_unlock_irq(&qdio->req_q_lock);
|
||||
return retval;
|
||||
@@ -2420,3 +2421,12 @@ void zfcp_fsf_reqid_check(struct zfcp_qdio *qdio, int sbal_idx)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
struct zfcp_fsf_req *zfcp_fsf_get_req(struct zfcp_qdio *qdio,
|
||||
struct qdio_buffer *sbal)
|
||||
{
|
||||
struct qdio_buffer_element *sbale = &sbal->element[0];
|
||||
u64 req_id = (unsigned long) sbale->addr;
|
||||
|
||||
return zfcp_reqlist_find(qdio->adapter->req_list, req_id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user