PATCH [9/18] qla2xxx: Tape command handling fixes
Subsystems (2)
ChangeSet
1.1845 04/06/04 08:58:01 [email protected] +2 -0 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 Andrew Vasquez <[email protected]>
drivers/scsi/qla2xxx/qla_init.c | 4 ++ drivers/scsi/qla2xxx/qla_os.c | 72 ++++++++++++++++------------------------ 2 files changed, 34 insertions(+), 42 deletions(-)
drivers/scsi/qla2xxx/qla_init.c +4 -0
@@ -4116,6 +4116,10 @@atomic_set (&ha->loop_state,LOOP_DOWN );atomic_set (&ha->loop_down_timer,LOOP_DOWN_TIME );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);
drivers/scsi/qla2xxx/qla_os.c +30 -42
293 lines not on this page · raw message