diff options
author | Lalit Chandivade <lalit.chandivade@qlogic.com> | 2010-09-03 17:57:02 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-09-05 14:18:28 -0400 |
commit | efa786cc43a114d0bf2e4b95e856ea6911404d58 (patch) | |
tree | cf2ff9e34fc893b0ddf80573d620c67a08181aa0 /drivers/scsi/qla2xxx | |
parent | 970ee0c52a41cf27c1b5c346dd9475e9c236f3c5 (diff) |
[SCSI] qla2xxx: Reset seconds_since_last_heartbeat correctly.
The seconds_since_last_heartbeat should be checked for consecutive
heartbeat checks. Currently it could happen that seconds_since_last_heartbeat
gets set to max (2 seconds) for non-consecutive heartbeat checks.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_nx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c index 915b77a6e193..e54d2fa1c9f1 100644 --- a/drivers/scsi/qla2xxx/qla_nx.c +++ b/drivers/scsi/qla2xxx/qla_nx.c | |||
@@ -3316,7 +3316,8 @@ qla82xx_check_fw_alive(scsi_qla_host_t *vha) | |||
3316 | complete(&ha->mbx_intr_comp); | 3316 | complete(&ha->mbx_intr_comp); |
3317 | } | 3317 | } |
3318 | } | 3318 | } |
3319 | } | 3319 | } else |
3320 | vha->seconds_since_last_heartbeat = 0; | ||
3320 | vha->fw_heartbeat_counter = fw_heartbeat_counter; | 3321 | vha->fw_heartbeat_counter = fw_heartbeat_counter; |
3321 | } | 3322 | } |
3322 | 3323 | ||