linux-stable/drivers/scsi/lpfc
James Smart 4f1a2fef2a scsi: lpfc: Fix PLOGI failure with high remoteport count
When connected to a high number of remote ports, the driver is encountering
PLOGI errors.  The errors are due to adapter detected failures indicating
illegal field values.

Turns out the driver was prematurely clearing an RPI bitmask before waiting
for an UNREG_RPI mailbox completion. This allowed the RPI to be reused
before it was actually available.

Fix by clearing RPI bitmask only after UNREG_RPI mailbox completion.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-08-19 22:41:08 -04:00
..
lpfc.h lpfc: add sysfs interface to post NVME RSCN 2019-06-21 11:08:38 +02:00
lpfc_attr.c SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
lpfc_attr.h
lpfc_bsg.c scsi: lpfc: remove redundant code 2019-08-19 22:07:50 -04:00
lpfc_bsg.h
lpfc_compat.h
lpfc_crtn.h SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
lpfc_ct.c
lpfc_debugfs.c
lpfc_debugfs.h scsi: lpfc: reduce stack size with CONFIG_GCC_PLUGIN_STRUCTLEAK_VERBOSE 2019-07-11 20:42:30 -04:00
lpfc_disc.h scsi: lpfc: Fix PLOGI failure with high remoteport count 2019-08-19 22:41:08 -04:00
lpfc_els.c SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
lpfc_hbadisc.c scsi: lpfc: Fix PLOGI failure with high remoteport count 2019-08-19 22:41:08 -04:00
lpfc_hw.h lpfc: add support to generate RSCN events for nport 2019-06-21 11:08:37 +02:00
lpfc_hw4.h
lpfc_ids.h
lpfc_init.c scsi: lpfc: Limit xri count for kdump environment 2019-08-19 22:41:08 -04:00
lpfc_logmsg.h
lpfc_mbox.c
lpfc_mem.c scsi: lpfc: remove NULL check before some freeing functions 2019-08-19 22:21:57 -04:00
lpfc_nl.h
lpfc_nportdisc.c
lpfc_nvme.c SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
lpfc_nvme.h
lpfc_nvmet.c SCSI sg on 20190709 2019-07-11 15:17:41 -07:00
lpfc_nvmet.h
lpfc_scsi.c
lpfc_scsi.h
lpfc_sli.c scsi: lpfc: Fix PLOGI failure with high remoteport count 2019-08-19 22:41:08 -04:00
lpfc_sli.h
lpfc_sli4.h
lpfc_version.h
lpfc_vport.c
lpfc_vport.h
Makefile