From: Giridhar Malavali <giridhar.malav...@qlogic.com>

Signed-off-by: Giridhar Malavali <giridhar.malav...@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kash...@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_nx.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c
index 5511e24..81388e9 100644
--- a/drivers/scsi/qla2xxx/qla_nx.c
+++ b/drivers/scsi/qla2xxx/qla_nx.c
@@ -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)) {
-- 
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to