Skip to content

Commit 45a7626

Browse files
Arun Easimartinkpetersen
authored andcommitted
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/[email protected] Reviewed-by: Himanshu Madhani <[email protected]> Signed-off-by: Arun Easi <[email protected]> Signed-off-by: Nilesh Javali <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 1d2ff14 commit 45a7626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/qla2xxx/qla_mbx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3153,7 +3153,7 @@ qla24xx_abort_command(srb_t *sp)
31533153
ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x108c,
31543154
"Entered %s.\n", __func__);
31553155

3156-
if (vha->flags.qpairs_available && sp->qpair)
3156+
if (sp->qpair)
31573157
req = sp->qpair->req;
31583158
else
31593159
return QLA_FUNCTION_FAILED;

0 commit comments

Comments
 (0)