From b65e44491dde45e736ffa55395238d73f4e05d10 Mon Sep 17 00:00:00 2001 From: hsu Date: Wed, 12 Feb 2003 00:42:12 +0000 Subject: Properly document that syncache timer processing requires an exclusive TCP protocol lock. --- sys/netinet/tcp_syncache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/netinet/tcp_syncache.c') diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index ba13efa..daf6d89 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); } -- cgit v1.1