* PATCH [8/15] qla2xxx: Use proper HA references
@ 2004-03-14 8:25 Andrew Vasquez
0 siblings, 0 replies; only message in thread
From: Andrew Vasquez @ 2004-03-14 8:25 UTC (permalink / raw)
To: James Bottomley; +Cc: SCSI Mailing List
ChangeSet
1.1664 04/03/01 14:26:47 andrew.vasquez@apc.qlogic.com +1 -0
Fix issue where the driver would reference the incorrect HA
during loop state check.
Note: This could only occur during failover mode.
drivers/scsi/qla2xxx/qla_os.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
ftp://ftp.qlogic.com/outgoing/linux/patches/8.x/8.00.00b11k/17_fix_ha_reference.patch
diff -Nru a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
--- a/drivers/scsi/qla2xxx/qla_os.c Fri Mar 12 17:08:15 2004
+++ b/drivers/scsi/qla2xxx/qla_os.c Fri Mar 12 17:08:15 2004
@@ -795,7 +795,7 @@
* Either PORT_DOWN_TIMER OR LINK_DOWN_TIMER Expired.
*/
if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD ||
- atomic_read(&ha->loop_state) == LOOP_DEAD) {
+ atomic_read(&ha2->loop_state) == LOOP_DEAD) {
/*
* Add the command to the done-queue for later failover
* processing
@@ -3209,7 +3209,7 @@
if (atomic_read(&fcport->state) ==
FCS_DEVICE_DEAD ||
- atomic_read(&ha->loop_state) == LOOP_DEAD) {
+ atomic_read(&fcport->ha->loop_state) == LOOP_DEAD) {
__del_from_retry_queue(ha, sp);
sp->cmd->result = DID_NO_CONNECT << 16;
@@ -3900,7 +3900,7 @@
* DID_BUS_BUSY to let the OS retry this cmd.
*/
if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD ||
- atomic_read(&vis_ha->loop_state) == LOOP_DEAD) {
+ atomic_read(&fcport->ha->loop_state) == LOOP_DEAD) {
cmd->result = DID_NO_CONNECT << 16;
if (atomic_read(&fcport->ha->loop_state) == LOOP_DOWN)
sp->err_id = SRB_ERR_LOOP;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-14 8:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-14 8:25 PATCH [8/15] qla2xxx: Use proper HA references Andrew Vasquez
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.