Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e612d465 authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley
Browse files

[SCSI] qla2xxx: Correct abort-semantics in qla2x00_abort_all_cmds().



As all commands queued on the physical HBA should be aborted and
returned to the upper-layers.

Signed-off-by: default avatarAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 55a96158
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1063,7 +1063,7 @@ qla2x00_abort_all_cmds(scsi_qla_host_t *vha, int res)
			continue;
		for (cnt = 1; cnt < MAX_OUTSTANDING_COMMANDS; cnt++) {
			sp = req->outstanding_cmds[cnt];
			if (sp && sp->fcport->vha == vha) {
			if (sp) {
				req->outstanding_cmds[cnt] = NULL;
				sp->cmd->result = res;
				qla2x00_sp_compl(ha, sp);