Skip to content

Commit 3905325

Browse files
author
Herton R. Krzesinski
committed
Merge: sctp: do not check hb_timer.expires when resetting hb_timer
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/2018 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2167094 Tested: bug reproducer Conflicts: - Context difference due to missing 8032bf1 in RHEL-9. Signed-off-by: Xin Long <lxin@redhat.com> Approved-by: Andrea Claudi <aclaudi@redhat.com> Approved-by: Florian Westphal <fwestpha@redhat.com> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2 parents 0477d97 + 4015c63 commit 3905325

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

net/sctp/transport.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ void sctp_transport_reset_hb_timer(struct sctp_transport *transport)
196196

197197
/* When a data chunk is sent, reset the heartbeat interval. */
198198
expires = jiffies + sctp_transport_timeout(transport);
199-
if ((time_before(transport->hb_timer.expires, expires) ||
200-
!timer_pending(&transport->hb_timer)) &&
201-
!mod_timer(&transport->hb_timer,
199+
if (!mod_timer(&transport->hb_timer,
202200
expires + prandom_u32_max(transport->rto)))
203201
sctp_transport_hold(transport);
204202
}

0 commit comments

Comments
 (0)