diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_nportdisc.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_nportdisc.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/scsi/lpfc/lpfc_nportdisc.c b/drivers/scsi/lpfc/lpfc_nportdisc.c index 8f548adae9cc..08cdc77af41c 100644 --- a/drivers/scsi/lpfc/lpfc_nportdisc.c +++ b/drivers/scsi/lpfc/lpfc_nportdisc.c | |||
@@ -192,7 +192,6 @@ lpfc_els_abort(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) | |||
192 | struct lpfc_sli *psli = &phba->sli; | 192 | struct lpfc_sli *psli = &phba->sli; |
193 | struct lpfc_sli_ring *pring = &psli->ring[LPFC_ELS_RING]; | 193 | struct lpfc_sli_ring *pring = &psli->ring[LPFC_ELS_RING]; |
194 | struct lpfc_iocbq *iocb, *next_iocb; | 194 | struct lpfc_iocbq *iocb, *next_iocb; |
195 | IOCB_t *cmd; | ||
196 | 195 | ||
197 | /* Abort outstanding I/O on NPort <nlp_DID> */ | 196 | /* Abort outstanding I/O on NPort <nlp_DID> */ |
198 | lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_DISCOVERY, | 197 | lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_DISCOVERY, |
@@ -223,19 +222,10 @@ lpfc_els_abort(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) | |||
223 | } | 222 | } |
224 | spin_unlock_irq(&phba->hbalock); | 223 | spin_unlock_irq(&phba->hbalock); |
225 | 224 | ||
226 | while (!list_empty(&completions)) { | 225 | /* Cancel all the IOCBs from the completions list */ |
227 | iocb = list_get_first(&completions, struct lpfc_iocbq, list); | 226 | lpfc_sli_cancel_iocbs(phba, &completions, IOSTAT_LOCAL_REJECT, |
228 | cmd = &iocb->iocb; | 227 | IOERR_SLI_ABORTED); |
229 | list_del_init(&iocb->list); | 228 | |
230 | |||
231 | if (!iocb->iocb_cmpl) | ||
232 | lpfc_sli_release_iocbq(phba, iocb); | ||
233 | else { | ||
234 | cmd->ulpStatus = IOSTAT_LOCAL_REJECT; | ||
235 | cmd->un.ulpWord[4] = IOERR_SLI_ABORTED; | ||
236 | (iocb->iocb_cmpl) (phba, iocb, iocb); | ||
237 | } | ||
238 | } | ||
239 | lpfc_cancel_retry_delay_tmo(phba->pport, ndlp); | 229 | lpfc_cancel_retry_delay_tmo(phba->pport, ndlp); |
240 | return 0; | 230 | return 0; |
241 | } | 231 | } |