Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99457d75 authored by Lalit Chandivade's avatar Lalit Chandivade Committed by James Bottomley
Browse files

[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: default avatarVikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: default avatarLalit Chandivade <lalit.chandivade@qlogic.com>
Signed-off-by: default avatarRavi Anand <ravi.anand@qlogic.com>
Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 2bd1e2be
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -690,7 +690,9 @@ static void qla4_8xxx_check_fw_alive(struct scsi_qla_host *ha)
			qla4xxx_wake_dpc(ha);
			qla4xxx_wake_dpc(ha);
			qla4xxx_mailbox_premature_completion(ha);
			qla4xxx_mailbox_premature_completion(ha);
		}
		}
	}
	} else
		ha->seconds_since_last_heartbeat = 0;

	ha->fw_heartbeat_counter = fw_heartbeat_counter;
	ha->fw_heartbeat_counter = fw_heartbeat_counter;
}
}