summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_syncache.c
diff options
context:
space:
mode:
authorJeffrey Hsu <hsu@FreeBSD.org>2003-02-12 00:42:12 +0000
committerJeffrey Hsu <hsu@FreeBSD.org>2003-02-12 00:42:12 +0000
commit6d45d64a8f68c6c2de36acf71bbbef8513998c92 (patch)
tree373d807862e75b822fbe16d1b5f059f8d5fbe5b3 /sys/netinet/tcp_syncache.c
parentf0e185d7051bd2069c813a483559e3c7500e6b5e (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r--sys/netinet/tcp_syncache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
index ba13efabaa90..daf6d8930b59 100644
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -369,10 +369,10 @@ syncache_timer(xslot)
int s;
s = splnet();
- INP_INFO_RLOCK(&tcbinfo);
+ INP_INFO_WLOCK(&tcbinfo);
if (callout_pending(&tcp_syncache.tt_timerq[slot]) ||
!callout_active(&tcp_syncache.tt_timerq[slot])) {
- INP_INFO_RUNLOCK(&tcbinfo);
+ INP_INFO_WUNLOCK(&tcbinfo);
splx(s);
return;
}
@@ -406,7 +406,7 @@ syncache_timer(xslot)
if (nsc != NULL)
callout_reset(&tcp_syncache.tt_timerq[slot],
nsc->sc_rxttime - ticks, syncache_timer, (void *)(slot));
- INP_INFO_RUNLOCK(&tcbinfo);
+ INP_INFO_WUNLOCK(&tcbinfo);
splx(s);
}