aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLalit Chandivade <lalit.chandivade@qlogic.com>2010-10-07 01:49:32 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-10-25 15:51:04 -0400
commit99457d75f617873591bf886921154e304e603ab4 (patch)
tree97d76523d57d5ab94c38ca471b441eb3faf691da
parent2bd1e2be8f7cce153a356a971012b9a604f9a412 (diff)
[SCSI] qla4xxx: Reset seconds_since_last_heartbeat correctly.
The seconds_since_last_heartbeat should be checked for consecutive heartbeat checks. Currently it could happen that it gets set to max (2 seconds) for non-consecutive heartbeat checks. Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Signed-off-by: Lalit Chandivade <lalit.chandivade@qlogic.com> Signed-off-by: Ravi Anand <ravi.anand@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index a6455fbe4f4..57890b6288b 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -690,7 +690,9 @@ static void qla4_8xxx_check_fw_alive(struct scsi_qla_host *ha)
690 qla4xxx_wake_dpc(ha); 690 qla4xxx_wake_dpc(ha);
691 qla4xxx_mailbox_premature_completion(ha); 691 qla4xxx_mailbox_premature_completion(ha);
692 } 692 }
693 } 693 } else
694 ha->seconds_since_last_heartbeat = 0;
695
694 ha->fw_heartbeat_counter = fw_heartbeat_counter; 696 ha->fw_heartbeat_counter = fw_heartbeat_counter;
695} 697}
696 698