scsi: qla2xxx: Fix hang when issuing nvme disconnect-all in NPIV
authorArun Easi <aeasi@marvell.com>
Tue, 31 Mar 2020 10:40:14 +0000 (03:40 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 24 Apr 2020 16:16:57 +0000 (12:16 -0400)
commit45a76264c26fd8cfd0c9746196892d9b7e2657ee
treec0dad70a480cc606d9d385d916192051614826da
parent1d2ff149b263c9325875726a7804a0c75ef7112e
scsi: qla2xxx: Fix hang when issuing nvme disconnect-all in NPIV

In NPIV environment, a NPIV host may use a queue pair created by base host
or other NPIVs, so the check for a queue pair created by this NPIV is not
correct, and can cause an abort to fail, which in turn means the NVME
command not returned.  This leads to hang in nvme_fc layer in
nvme_fc_delete_association() which waits for all I/Os to be returned, which
is seen as hang in the application.

Link: https://lore.kernel.org/r/20200331104015.24868-3-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Arun Easi <aeasi@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_mbx.c