Skip to content

Commit a8f192b

Browse files
Chad Dupuismartinkpetersen
authored andcommitted
scsi: qedf: Return request as DID_NO_CONNECT if MSI-X is not enabled
Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent adf4884 commit a8f192b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/scsi/qedf/qedf_io.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,15 @@ qedf_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd)
931931
return 0;
932932
}
933933

934+
if (!qedf->pdev->msix_enabled) {
935+
QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_IO,
936+
"Completing sc_cmd=%p DID_NO_CONNECT as MSI-X is not enabled.\n",
937+
sc_cmd);
938+
sc_cmd->result = DID_NO_CONNECT << 16;
939+
sc_cmd->scsi_done(sc_cmd);
940+
return 0;
941+
}
942+
934943
rval = fc_remote_port_chkready(rport);
935944
if (rval) {
936945
sc_cmd->result = rval;

0 commit comments

Comments
 (0)