]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lpfc: Fix to drop PLOGIs from fabric node till LOGO processing completes
authorJames Smart <james.smart@avagotech.com>
Fri, 22 May 2015 14:42:43 +0000 (10:42 -0400)
committerJames Bottomley <JBottomley@Odin.com>
Sat, 13 Jun 2015 15:24:13 +0000 (08:24 -0700)
commit7c5e518cc02c64901cb8920b7f5b080b91375324
treeefd40e18905c9d9ed42603a8ede4e03f9cde45b0
parentae374a308cbfeab3cf72ef7c57695d2145defeab
lpfc: Fix to drop PLOGIs from fabric node till LOGO processing completes

The domain controller PLOGI's concurrent with prior LOGO's/unreg_rpi's
completing created a race condition where driver rpi ref count can
inadvertantly hit 0 and the rpi attempted to be freed. This error
sometimes resulted in Warning messages indicating kref.h via
lfpc_nlp_get+0x128.

Correct by dropping any new PLOGI until the prior nport state has settled.

Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: James Smart <james.smart@avagotech.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/lpfc/lpfc_els.c
drivers/scsi/lpfc/lpfc_hbadisc.c
drivers/scsi/lpfc/lpfc_nportdisc.c
drivers/scsi/lpfc/lpfc_sli.c