Commit 6f1bbfb9 authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley

[PATCH] [9/18] qla2xxx: Tape command handling fixes

  Address several outstanding problem within the various
  eh_*() functions:

  	o Fixup nested spinlock usage in error-hanlding
  	  functions.

  	o Set the Loop down timer during abort isp if loop
  	  was already down for the driver to detect cable
  	  is unplugged at min time.
Signed-off-by: default avatarAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 25a48bb9
...@@ -4116,6 +4116,10 @@ qla2x00_abort_isp(scsi_qla_host_t *ha) ...@@ -4116,6 +4116,10 @@ qla2x00_abort_isp(scsi_qla_host_t *ha)
atomic_set(&ha->loop_state, LOOP_DOWN); atomic_set(&ha->loop_state, LOOP_DOWN);
atomic_set(&ha->loop_down_timer, LOOP_DOWN_TIME); atomic_set(&ha->loop_down_timer, LOOP_DOWN_TIME);
qla2x00_mark_all_devices_lost(ha); qla2x00_mark_all_devices_lost(ha);
} else {
if (!atomic_read(&ha->loop_down_timer))
atomic_set(&ha->loop_down_timer,
LOOP_DOWN_TIME);
} }
spin_lock_irqsave(&ha->hardware_lock, flags); spin_lock_irqsave(&ha->hardware_lock, flags);
......
This diff is collapsed.
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