summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2006-06-18 11:48:03 +0000
committerandre <andre@FreeBSD.org>2006-06-18 11:48:03 +0000
commit9d4650295fe4bfbcd71c3b03a0e8770dee83729e (patch)
tree7e388af4918702d1009a434af740d16074def6a7 /sys/netinet
parentd45bde408fddbf99e7b206fe8a3053799d1a98f0 (diff)
downloadFreeBSD-src-9d4650295fe4bfbcd71c3b03a0e8770dee83729e.zip
FreeBSD-src-9d4650295fe4bfbcd71c3b03a0e8770dee83729e.tar.gz
Remove double lock acquisition in syncookie_lookup() which came from last
minute conversions to macros. Pointy hat to: andre
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_syncache.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
index 87d8650..e849c7f 100644
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -1347,7 +1347,6 @@ syncookie_lookup(struct in_conninfo *inc, struct tcphdr *th, struct socket *so)
data = (th->th_ack - 1) ^ (th->th_seq - 1); /* remove ISS */
idx = data & SYNCOOKIE_WNDMASK;
- rw_rlock(&(tcp_secret[idx].ts_rwmtx));
SYNCOOKIE_RLOCK(tcp_secret[idx]);
if (tcp_secret[idx].ts_expire < ticks ||
sototcpcb(so)->ts_recent + SYNCOOKIE_TIMEOUT < ticks) {
OpenPOWER on IntegriCloud