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

Commit af13b700 authored by Giridhar Malavali's avatar Giridhar Malavali Committed by Christoph Hellwig
Browse files

qla2xxx: Issue abort command for outstanding commands during cleanup when only firmware is alive.

parent 4fa0c668
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3682,8 +3682,10 @@ qla82xx_chip_reset_cleanup(scsi_qla_host_t *vha)
			for (cnt = 1; cnt < req->num_outstanding_cmds; cnt++) {
				sp = req->outstanding_cmds[cnt];
				if (sp) {
					if (!sp->u.scmd.ctx ||
					    (sp->flags & SRB_FCP_CMND_DMA_VALID)) {
					if ((!sp->u.scmd.ctx ||
					    (sp->flags &
						SRB_FCP_CMND_DMA_VALID)) &&
						!ha->flags.isp82xx_fw_hung) {
						spin_unlock_irqrestore(
						    &ha->hardware_lock, flags);
						if (ha->isp_ops->abort_command(sp)) {