diff options
author | andre <andre@FreeBSD.org> | 2004-01-22 23:14:48 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2004-01-22 23:14:48 +0000 |
commit | b6aedfab99d4f7699ed38ea8402dfd90554d383b (patch) | |
tree | cb7a38cc57240e95044bd2c97d3f8e3f5e129527 | |
parent | e2c27942df3df17a047e3141b6ec4707dd7f0865 (diff) | |
download | FreeBSD-src-b6aedfab99d4f7699ed38ea8402dfd90554d383b.zip FreeBSD-src-b6aedfab99d4f7699ed38ea8402dfd90554d383b.tar.gz |
Move the reduction by one of the syncache limit after the zone has been
allocated.
Reviewed by: sam (mentor)
Obtained from: DragonFlyBSD rev 1.6 (hsu)
-rw-r--r-- | sys/netinet/tcp_syncache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 1fbb4e8..4c9d0af 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -255,10 +255,10 @@ syncache_init(void) * more entry than cache limit, so a new entry can bump out an * older one. */ - tcp_syncache.cache_limit -= 1; tcp_syncache.zone = uma_zcreate("syncache", sizeof(struct syncache), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); uma_zone_set_max(tcp_syncache.zone, tcp_syncache.cache_limit); + tcp_syncache.cache_limit -= 1; } static void |