scsi: libfc: If PRLI rejected, move rport to PLOGI state
authorJaved Hasan <jhasan@marvell.com>
Fri, 27 Mar 2020 06:02:07 +0000 (23:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:32:58 +0000 (16:32 +0200)
commitfb669262fdef49ef3ef217299ebbafbb673e5633
treea7706231261db842abe3c7aa9a1d3b7f96e10bca
parent8427b05a7a1f03f729fdcb6d8afa54226a546e32
scsi: libfc: If PRLI rejected, move rport to PLOGI state

[ Upstream commit 45e544bfdab2014d11c7595b8ccc3c4715a09015 ]

If PRLI reject code indicates "rejected status", move rport state machine
back to PLOGI state.

Link: https://lore.kernel.org/r/20200327060208.17104-2-skashyap@marvell.com
Signed-off-by: Javed Hasan <jhasan@marvell.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/libfc/fc_rport.c