mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
[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>
This commit is contained in:
parent
970ee0c52a
commit
efa786cc43
1 changed files with 2 additions and 1 deletions
|
@ -3316,7 +3316,8 @@ qla82xx_check_fw_alive(scsi_qla_host_t *vha)
|
|||
complete(&ha->mbx_intr_comp);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else
|
||||
vha->seconds_since_last_heartbeat = 0;
|
||||
vha->fw_heartbeat_counter = fw_heartbeat_counter;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue