aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_erp.c
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2010-02-17 05:18:49 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-02-17 18:46:17 -0500
commite60a6d69f1f84c2ef1cc63aefaadfe7ae9f12934 (patch)
tree82d93610abd9c859eb43675b095583b17253309d /drivers/s390/scsi/zfcp_erp.c
parentcae727db30e9bcbc0256ec3282edce98b4a85433 (diff)
[SCSI] zfcp: Remove function zfcp_reqlist_find_safe
Always use the FSF request id as a reference to the FSF request. With this change the function zfcp_reqlist_find_safe is no longer needed and can be removed. 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@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_erp.c')
-rw-r--r--drivers/s390/scsi/zfcp_erp.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c
index b51a11a82e63..d40d5b0f263f 100644
--- a/drivers/s390/scsi/zfcp_erp.c
+++ b/drivers/s390/scsi/zfcp_erp.c
@@ -478,25 +478,26 @@ static void zfcp_erp_action_to_running(struct zfcp_erp_action *erp_action)
478static void zfcp_erp_strategy_check_fsfreq(struct zfcp_erp_action *act) 478static void zfcp_erp_strategy_check_fsfreq(struct zfcp_erp_action *act)
479{ 479{
480 struct zfcp_adapter *adapter = act->adapter; 480 struct zfcp_adapter *adapter = act->adapter;
481 struct zfcp_fsf_req *req;
481 482
482 if (!act->fsf_req) 483 if (!act->fsf_req_id)
483 return; 484 return;
484 485
485 spin_lock(&adapter->req_list_lock); 486 spin_lock(&adapter->req_list_lock);
486 if (zfcp_reqlist_find_safe(adapter, act->fsf_req) && 487 req = zfcp_reqlist_find(adapter, act->fsf_req_id);
487 act->fsf_req->erp_action == act) { 488 if (req && req->erp_action == act) {
488 if (act->status & (ZFCP_STATUS_ERP_DISMISSED | 489 if (act->status & (ZFCP_STATUS_ERP_DISMISSED |
489 ZFCP_STATUS_ERP_TIMEDOUT)) { 490 ZFCP_STATUS_ERP_TIMEDOUT)) {
490 act->fsf_req->status |= ZFCP_STATUS_FSFREQ_DISMISSED; 491 req->status |= ZFCP_STATUS_FSFREQ_DISMISSED;
491 zfcp_dbf_rec_action("erscf_1", act); 492 zfcp_dbf_rec_action("erscf_1", act);
492 act->fsf_req->erp_action = NULL; 493 req->erp_action = NULL;
493 } 494 }
494 if (act->status & ZFCP_STATUS_ERP_TIMEDOUT) 495 if (act->status & ZFCP_STATUS_ERP_TIMEDOUT)
495 zfcp_dbf_rec_action("erscf_2", act); 496 zfcp_dbf_rec_action("erscf_2", act);
496 if (act->fsf_req->status & ZFCP_STATUS_FSFREQ_DISMISSED) 497 if (req->status & ZFCP_STATUS_FSFREQ_DISMISSED)
497 act->fsf_req = NULL; 498 act->fsf_req_id = 0;
498 } else 499 } else
499 act->fsf_req = NULL; 500 act->fsf_req_id = 0;
500 spin_unlock(&adapter->req_list_lock); 501 spin_unlock(&adapter->req_list_lock);
501} 502}
502 503