scsi: qla2xxx: Fix session cleanup hang
authorQuinn Tran <quinn.tran@cavium.com>
Fri, 25 Jan 2019 07:23:42 +0000 (23:23 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Feb 2019 02:41:16 +0000 (21:41 -0500)
commit80676d054e5a945f8192802b68093764fbf3c5fc
tree8f6f6ecf6843897589e24aa2b3d68d267f5907f6
parent4825034afba894cc2533e91ff411bfd5b49a632c
scsi: qla2xxx: Fix session cleanup hang

On session cleanup, either an implicit LOGO or an implicit PRLO is used to
flush IOs.  If the flush command hit Queue Full condition, then it is
dropped.  This patch adds retry code to prevent command drop.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_iocb.c
drivers/scsi/qla2xxx/qla_os.c