aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_scsi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index 3606b7098fc1..5dae4d306758 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -653,7 +653,7 @@ lpfc_scsi_cmd_iocb_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pIocbIn,
653 break; 653 break;
654 case IOSTAT_NPORT_BSY: 654 case IOSTAT_NPORT_BSY:
655 case IOSTAT_FABRIC_BSY: 655 case IOSTAT_FABRIC_BSY:
656 cmd->result = ScsiResult(DID_BUS_BUSY, 0); 656 cmd->result = ScsiResult(DID_TRANSPORT_DISRUPTED, 0);
657 break; 657 break;
658 case IOSTAT_LOCAL_REJECT: 658 case IOSTAT_LOCAL_REJECT:
659 if (lpfc_cmd->result == IOERR_INVALID_RPI || 659 if (lpfc_cmd->result == IOERR_INVALID_RPI ||
@@ -669,7 +669,8 @@ lpfc_scsi_cmd_iocb_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pIocbIn,
669 669
670 if (!pnode || !NLP_CHK_NODE_ACT(pnode) 670 if (!pnode || !NLP_CHK_NODE_ACT(pnode)
671 || (pnode->nlp_state != NLP_STE_MAPPED_NODE)) 671 || (pnode->nlp_state != NLP_STE_MAPPED_NODE))
672 cmd->result = ScsiResult(DID_BUS_BUSY, SAM_STAT_BUSY); 672 cmd->result = ScsiResult(DID_TRANSPORT_DISRUPTED,
673 SAM_STAT_BUSY);
673 } else { 674 } else {
674 cmd->result = ScsiResult(DID_OK, 0); 675 cmd->result = ScsiResult(DID_OK, 0);
675 } 676 }