diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2009-08-18 09:43:21 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-09-05 09:49:30 -0400 |
commit | 5771710bd5edfafcb8656f49b93690a6fae5a4d2 (patch) | |
tree | f7ca88bc0f3d780794aa564855c0ed0ddeb9af18 /drivers/s390/scsi/zfcp_fsf.c | |
parent | 799b76d09aeee558d18c1f5b93e63f58f1d1fc11 (diff) |
[SCSI] zfcp: Update dbf calls
Change the dbf data and functions to use the zfcp_dbf prefix
throughout the code. Also change the calls to dbf to use zfcp_dbf
instead of zfcp_adapter.
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>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index 048f1a848f34..665967f049a8 100644 --- a/drivers/s390/scsi/zfcp_fsf.c +++ b/drivers/s390/scsi/zfcp_fsf.c | |||
@@ -248,13 +248,13 @@ static void zfcp_fsf_status_read_handler(struct zfcp_fsf_req *req) | |||
248 | struct fsf_status_read_buffer *sr_buf = req->data; | 248 | struct fsf_status_read_buffer *sr_buf = req->data; |
249 | 249 | ||
250 | if (req->status & ZFCP_STATUS_FSFREQ_DISMISSED) { | 250 | if (req->status & ZFCP_STATUS_FSFREQ_DISMISSED) { |
251 | zfcp_hba_dbf_event_fsf_unsol("dism", adapter, sr_buf); | 251 | zfcp_dbf_hba_fsf_unsol("dism", adapter->dbf, sr_buf); |
252 | mempool_free(sr_buf, adapter->pool.status_read_data); | 252 | mempool_free(sr_buf, adapter->pool.status_read_data); |
253 | zfcp_fsf_req_free(req); | 253 | zfcp_fsf_req_free(req); |
254 | return; | 254 | return; |
255 | } | 255 | } |
256 | 256 | ||
257 | zfcp_hba_dbf_event_fsf_unsol("read", adapter, sr_buf); | 257 | zfcp_dbf_hba_fsf_unsol("read", adapter->dbf, sr_buf); |
258 | 258 | ||
259 | switch (sr_buf->status_type) { | 259 | switch (sr_buf->status_type) { |
260 | case FSF_STATUS_READ_PORT_CLOSED: | 260 | case FSF_STATUS_READ_PORT_CLOSED: |
@@ -269,7 +269,7 @@ static void zfcp_fsf_status_read_handler(struct zfcp_fsf_req *req) | |||
269 | dev_warn(&adapter->ccw_device->dev, | 269 | dev_warn(&adapter->ccw_device->dev, |
270 | "The error threshold for checksum statistics " | 270 | "The error threshold for checksum statistics " |
271 | "has been exceeded\n"); | 271 | "has been exceeded\n"); |
272 | zfcp_hba_dbf_event_berr(adapter, req); | 272 | zfcp_dbf_hba_berr(adapter->dbf, req); |
273 | break; | 273 | break; |
274 | case FSF_STATUS_READ_LINK_DOWN: | 274 | case FSF_STATUS_READ_LINK_DOWN: |
275 | zfcp_fsf_status_read_link_down(req); | 275 | zfcp_fsf_status_read_link_down(req); |
@@ -355,7 +355,7 @@ static void zfcp_fsf_protstatus_eval(struct zfcp_fsf_req *req) | |||
355 | struct fsf_qtcb *qtcb = req->qtcb; | 355 | struct fsf_qtcb *qtcb = req->qtcb; |
356 | union fsf_prot_status_qual *psq = &qtcb->prefix.prot_status_qual; | 356 | union fsf_prot_status_qual *psq = &qtcb->prefix.prot_status_qual; |
357 | 357 | ||
358 | zfcp_hba_dbf_event_fsf_response(req); | 358 | zfcp_dbf_hba_fsf_response(req); |
359 | 359 | ||
360 | if (req->status & ZFCP_STATUS_FSFREQ_DISMISSED) { | 360 | if (req->status & ZFCP_STATUS_FSFREQ_DISMISSED) { |
361 | req->status |= ZFCP_STATUS_FSFREQ_ERROR | | 361 | req->status |= ZFCP_STATUS_FSFREQ_ERROR | |
@@ -848,7 +848,7 @@ failed_req_send: | |||
848 | mempool_free(sr_buf, adapter->pool.status_read_data); | 848 | mempool_free(sr_buf, adapter->pool.status_read_data); |
849 | failed_buf: | 849 | failed_buf: |
850 | zfcp_fsf_req_free(req); | 850 | zfcp_fsf_req_free(req); |
851 | zfcp_hba_dbf_event_fsf_unsol("fail", adapter, NULL); | 851 | zfcp_dbf_hba_fsf_unsol("fail", adapter->dbf, NULL); |
852 | out: | 852 | out: |
853 | spin_unlock_bh(&qdio->req_q_lock); | 853 | spin_unlock_bh(&qdio->req_q_lock); |
854 | return retval; | 854 | return retval; |
@@ -968,7 +968,7 @@ static void zfcp_fsf_send_ct_handler(struct zfcp_fsf_req *req) | |||
968 | 968 | ||
969 | switch (header->fsf_status) { | 969 | switch (header->fsf_status) { |
970 | case FSF_GOOD: | 970 | case FSF_GOOD: |
971 | zfcp_san_dbf_event_ct_response(req); | 971 | zfcp_dbf_san_ct_response(req); |
972 | send_ct->status = 0; | 972 | send_ct->status = 0; |
973 | break; | 973 | break; |
974 | case FSF_SERVICE_CLASS_NOT_SUPPORTED: | 974 | case FSF_SERVICE_CLASS_NOT_SUPPORTED: |
@@ -1100,7 +1100,7 @@ int zfcp_fsf_send_ct(struct zfcp_send_ct *ct, mempool_t *pool) | |||
1100 | req->qtcb->bottom.support.timeout = ct->timeout; | 1100 | req->qtcb->bottom.support.timeout = ct->timeout; |
1101 | req->data = ct; | 1101 | req->data = ct; |
1102 | 1102 | ||
1103 | zfcp_san_dbf_event_ct_request(req); | 1103 | zfcp_dbf_san_ct_request(req); |
1104 | zfcp_fsf_start_timer(req, ZFCP_FSF_REQUEST_TIMEOUT); | 1104 | zfcp_fsf_start_timer(req, ZFCP_FSF_REQUEST_TIMEOUT); |
1105 | 1105 | ||
1106 | ret = zfcp_fsf_req_send(req); | 1106 | ret = zfcp_fsf_req_send(req); |
@@ -1129,7 +1129,7 @@ static void zfcp_fsf_send_els_handler(struct zfcp_fsf_req *req) | |||
1129 | 1129 | ||
1130 | switch (header->fsf_status) { | 1130 | switch (header->fsf_status) { |
1131 | case FSF_GOOD: | 1131 | case FSF_GOOD: |
1132 | zfcp_san_dbf_event_els_response(req); | 1132 | zfcp_dbf_san_els_response(req); |
1133 | send_els->status = 0; | 1133 | send_els->status = 0; |
1134 | break; | 1134 | break; |
1135 | case FSF_SERVICE_CLASS_NOT_SUPPORTED: | 1135 | case FSF_SERVICE_CLASS_NOT_SUPPORTED: |
@@ -1203,7 +1203,7 @@ int zfcp_fsf_send_els(struct zfcp_send_els *els) | |||
1203 | bottom->timeout = 2 * R_A_TOV; | 1203 | bottom->timeout = 2 * R_A_TOV; |
1204 | req->data = els; | 1204 | req->data = els; |
1205 | 1205 | ||
1206 | zfcp_san_dbf_event_els_request(req); | 1206 | zfcp_dbf_san_els_request(req); |
1207 | 1207 | ||
1208 | zfcp_fsf_start_timer(req, ZFCP_FSF_REQUEST_TIMEOUT); | 1208 | zfcp_fsf_start_timer(req, ZFCP_FSF_REQUEST_TIMEOUT); |
1209 | ret = zfcp_fsf_req_send(req); | 1209 | ret = zfcp_fsf_req_send(req); |
@@ -2213,11 +2213,11 @@ static void zfcp_fsf_send_fcp_command_task_handler(struct zfcp_fsf_req *req) | |||
2213 | } | 2213 | } |
2214 | skip_fsfstatus: | 2214 | skip_fsfstatus: |
2215 | if (scpnt->result != 0) | 2215 | if (scpnt->result != 0) |
2216 | zfcp_scsi_dbf_event_result("erro", 3, req->adapter, scpnt, req); | 2216 | zfcp_dbf_scsi_result("erro", 3, req->adapter->dbf, scpnt, req); |
2217 | else if (scpnt->retries > 0) | 2217 | else if (scpnt->retries > 0) |
2218 | zfcp_scsi_dbf_event_result("retr", 4, req->adapter, scpnt, req); | 2218 | zfcp_dbf_scsi_result("retr", 4, req->adapter->dbf, scpnt, req); |
2219 | else | 2219 | else |
2220 | zfcp_scsi_dbf_event_result("norm", 6, req->adapter, scpnt, req); | 2220 | zfcp_dbf_scsi_result("norm", 6, req->adapter->dbf, scpnt, req); |
2221 | 2221 | ||
2222 | scpnt->host_scribble = NULL; | 2222 | scpnt->host_scribble = NULL; |
2223 | (scpnt->scsi_done) (scpnt); | 2223 | (scpnt->scsi_done) (scpnt); |