scsi: qla2xxx: Fix hang in fcport delete path
authorQuinn Tran <qutran@marvell.com>
Fri, 26 Jul 2019 16:07:38 +0000 (09:07 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 7 Aug 2019 22:08:12 +0000 (18:08 -0400)
commitf00b3428a801758243693e046b34226e92bc56b3
tree22afea25f7e58b9af7109036cf08c9277549b299
parenta36f1443e6fc738c1bcfc4be80d6f1609163c614
scsi: qla2xxx: Fix hang in fcport delete path

A hang was observed in the fcport delete path when the device was
responding slow and an issue-lip path (results in session termination) was
taken.

Fix this by issuing logo requests unconditionally.

PID: 19491  TASK: ffff8e23e67bb150  CPU: 0   COMMAND: "kworker/0:0"
 #0 [ffff8e2370297bf8] __schedule at ffffffffb4f7dbb0
 #1 [ffff8e2370297c88] schedule at ffffffffb4f7e199
 #2 [ffff8e2370297c98] schedule_timeout at ffffffffb4f7ba68
 #3 [ffff8e2370297d40] msleep at ffffffffb48ad9ff
 #4 [ffff8e2370297d58] qlt_free_session_done at ffffffffc0c32052 [qla2xxx]
 #5 [ffff8e2370297e20] process_one_work at ffffffffb48bcfdf
 #6 [ffff8e2370297e68] worker_thread at ffffffffb48bdca6
 #7 [ffff8e2370297ec8] kthread at ffffffffb48c4f81

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