From: James Smart Date: Thu, 13 Oct 2016 22:06:14 +0000 (-0700) Subject: scsi: lpfc: Fix lost target in pt-to-pt connect X-Git-Tag: v4.14-rc1~1899^2~213 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=401304cc0d508de2e366e693fedbe52b18aef0a8;p=platform%2Fkernel%2Flinux-rpi3.git scsi: lpfc: Fix lost target in pt-to-pt connect Fix lost target in pt-to-pt connect Change reject code to something that allows a retry Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index b7d54bf..236e4e5 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -7610,7 +7610,7 @@ lpfc_els_unsol_buffer(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, /* reject till our FLOGI completes */ if ((vport->port_state < LPFC_FABRIC_CFG_LINK) && (cmd != ELS_CMD_FLOGI)) { - rjt_err = LSRJT_UNABLE_TPC; + rjt_err = LSRJT_LOGICAL_BSY; rjt_exp = LSEXP_NOTHING_MORE; goto lsrjt; }