|
@@ -3835,17 +3835,19 @@ qla2x00_abort_isp_cleanup(scsi_qla_host_t *vha)
|
|
LOOP_DOWN_TIME);
|
|
LOOP_DOWN_TIME);
|
|
}
|
|
}
|
|
|
|
|
|
- /* Make sure for ISP 82XX IO DMA is complete */
|
|
|
|
- if (IS_QLA82XX(ha)) {
|
|
|
|
- if (qla2x00_eh_wait_for_pending_commands(vha, 0, 0,
|
|
|
|
- WAIT_HOST) == QLA_SUCCESS) {
|
|
|
|
- DEBUG2(qla_printk(KERN_INFO, ha,
|
|
|
|
- "Done wait for pending commands\n"));
|
|
|
|
|
|
+ if (!ha->flags.eeh_busy) {
|
|
|
|
+ /* Make sure for ISP 82XX IO DMA is complete */
|
|
|
|
+ if (IS_QLA82XX(ha)) {
|
|
|
|
+ if (qla2x00_eh_wait_for_pending_commands(vha, 0, 0,
|
|
|
|
+ WAIT_HOST) == QLA_SUCCESS) {
|
|
|
|
+ DEBUG2(qla_printk(KERN_INFO, ha,
|
|
|
|
+ "Done wait for pending commands\n"));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- /* Requeue all commands in outstanding command list. */
|
|
|
|
- qla2x00_abort_all_cmds(vha, DID_RESET << 16);
|
|
|
|
|
|
+ /* Requeue all commands in outstanding command list. */
|
|
|
|
+ qla2x00_abort_all_cmds(vha, DID_RESET << 16);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|