Assert the inpcb lock in tcp_xmit_timer() as it performs read-modify-

write of various time/rtt-related fields in the tcpcb.
This commit is contained in:
Robert Watson 2004-11-28 11:06:22 +00:00
parent 18ad5842c5
commit 2be3bf2244
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138148
2 changed files with 4 additions and 0 deletions

View File

@ -2640,6 +2640,8 @@ tcp_xmit_timer(tp, rtt)
{
register int delta;
INP_LOCK_ASSERT(tp->t_inpcb);
tcpstat.tcps_rttupdated++;
tp->t_rttupdated++;
if (tp->t_srtt != 0) {

View File

@ -2640,6 +2640,8 @@ tcp_xmit_timer(tp, rtt)
{
register int delta;
INP_LOCK_ASSERT(tp->t_inpcb);
tcpstat.tcps_rttupdated++;
tp->t_rttupdated++;
if (tp->t_srtt != 0) {