From: James Smart Date: Fri, 22 May 2015 14:42:36 +0000 (-0400) Subject: lpfc: Fix vport deletion failure. X-Git-Tag: v4.1.12-92~249^2~3^2~15 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=62f6f460d058e150fdc2c48b0e273c465efc806e;p=users%2Fjedix%2Flinux-maple.git lpfc: Fix vport deletion failure. If a vport was deleted while in the middle of discovery, we weren't clearing the nport discovery flag. Correct by clearing the flag and cancelling our discovery timeout timer. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Hannes Reinecke Signed-off-by: James Bottomley (cherry picked from commit 73dc0dbed3f9f65c6f80fab429dd9771de794714) Orabug: 22029622 From dick.kennedy@avagotech.com lpfc-10.5.0.1-11.0.0.3-1.tar.gz Acked-by: Chuck Anderson --- diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 2ba4aa8dd36ff..61349695225e8 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -8393,8 +8393,10 @@ lpfc_cmpl_els_npiv_logo(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, if (irsp->ulpStatus == IOSTAT_SUCCESS) { spin_lock_irq(shost->host_lock); + vport->fc_flag &= ~FC_NDISC_ACTIVE; vport->fc_flag &= ~FC_FABRIC; spin_unlock_irq(shost->host_lock); + lpfc_can_disctmo(vport); } }