]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: qla2xxx: Retry PLOGI on FC-NVMe PRLI failure
authorQuinn Tran <qutran@marvell.com>
Tue, 5 Nov 2019 15:06:50 +0000 (07:06 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 9 Nov 2019 02:15:41 +0000 (21:15 -0500)
commit983f127603fac650fa34ee69db363e4615eaf9e7
tree913fa739f5d566b13f191c34cf1874596d6a5b7f
parentc8510d240306075ebb2ac2a44054d664cb39908b
scsi: qla2xxx: Retry PLOGI on FC-NVMe PRLI failure

Current code will send PRLI with FC-NVMe bit set for the targets which
support only FCP. This may result into issue with targets which do not
understand NVMe and will go into a strange state. This patch would restart
the login process by going back to PLOGI state. The PLOGI state will force
the target to respond to correct PRLI request.

Fixes: c76ae845ea836 ("scsi: qla2xxx: Add error handling for PLOGI ELS passthrough")
Cc: stable@vger.kernel.org # 5.4
Link: https://lore.kernel.org/r/20191105150657.8092-2-hmadhani@marvell.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_iocb.c