Commit 4c42f515 authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley

[PATCH] PATCH [5/15] qla2xxx: Debug messages during ISP abort

  Issue a kernel warning message before initiating an ISP abort (big
  hammer) -- additional debugging mechanism in case of event.

 drivers/scsi/qla2xxx/qla_mbx.c  |    9 +++++++++
 drivers/scsi/qla2xxx/qla_os.c   |    2 ++
 drivers/scsi/qla2xxx/qla_rscn.c |    2 ++
 3 files changed, 13 insertions(+)
parent e379fa31
......@@ -279,6 +279,9 @@ qla2x00_mailbox_command(scsi_qla_host_t *ha, mbx_cmd_t *mcp)
DEBUG2_3_11(printk("qla2x00_mailbox_command(%ld): "
"timeout schedule isp_abort_needed.\n",
ha->host_no);)
qla_printk(KERN_WARNING, ha,
"Mailbox command timeout occured. Scheduling ISP "
"abort.\n");
set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags);
if (ha->dpc_wait && !ha->dpc_active)
up(ha->dpc_wait);
......@@ -290,6 +293,9 @@ qla2x00_mailbox_command(scsi_qla_host_t *ha, mbx_cmd_t *mcp)
"calling abort_isp\n", ha->host_no);)
DEBUG2_3_11(printk("qla2x00_mailbox_command(%ld): "
"timeout calling abort_isp\n", ha->host_no);)
qla_printk(KERN_WARNING, ha,
"Mailbox command timeout occured. Issuing ISP "
"abort.\n");
set_bit(ABORT_ISP_ACTIVE, &ha->dpc_flags);
clear_bit(ISP_ABORT_NEEDED, &ha->dpc_flags);
......@@ -1062,6 +1068,9 @@ qla2x00_abort_device(scsi_qla_host_t *ha, uint16_t loop_id, uint16_t lun)
qla2x00_marker(ha, loop_id, lun, MK_SYNC_ID_LUN);
if (rval != QLA_SUCCESS) {
qla_printk(KERN_WARNING, ha,
"Failed Abort Device Mailbox command. Scheduling ISP "
"abort.\n");
set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags);
if (ha->dpc_wait && !ha->dpc_active)
up(ha->dpc_wait);
......
......@@ -3856,6 +3856,8 @@ qla2x00_timer(scsi_qla_host_t *ha)
DEBUG(printk("scsi(%ld): Loop down - "
"aborting ISP.\n",
ha->host_no));
qla_printk(KERN_WARNING, ha,
"Loop down - aborting ISP.\n");
set_bit(ISP_ABORT_NEEDED, &ha->dpc_flags);
}
......
......@@ -283,6 +283,8 @@ qla2x00_iodesc_timeout(unsigned long data)
qla2x00_free_iodesc(iodesc);
qla_printk(KERN_WARNING, iodesc->ha,
"IO descriptor timeout. Scheduling ISP abort.\n");
set_bit(ISP_ABORT_NEEDED, &iodesc->ha->dpc_flags);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment