[SCSI] qla4xxx: Reset seconds_since_last_heartbeat correctly.
authorLalit Chandivade <lalit.chandivade@qlogic.com>
Thu, 7 Oct 2010 05:49:32 +0000 (22:49 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 25 Oct 2010 19:51:04 +0000 (14:51 -0500)
commit99457d75f617873591bf886921154e304e603ab4
tree97d76523d57d5ab94c38ca471b441eb3faf691da
parent2bd1e2be8f7cce153a356a971012b9a604f9a412
[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>
drivers/scsi/qla4xxx/ql4_os.c