diff options
author | Andre Oppermann <andre@FreeBSD.org> | 2004-01-22 23:14:48 +0000 |
---|---|---|
committer | Andre Oppermann <andre@FreeBSD.org> | 2004-01-22 23:14:48 +0000 |
commit | 1ddba8d63e51fc0cc951a54c8c9fa7248bbf2bda (patch) | |
tree | cb7a38cc57240e95044bd2c97d3f8e3f5e129527 /sys/netinet/tcp_syncache.c | |
parent | 73080de2be03e38d6f3d93e42c3ad4b9d880a4ba (diff) | |
download | src-1ddba8d63e51fc0cc951a54c8c9fa7248bbf2bda.tar.gz src-1ddba8d63e51fc0cc951a54c8c9fa7248bbf2bda.zip |
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)
Notes
Notes:
svn path=/head/; revision=124848
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-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 1fbb4e8263fd..4c9d0af13867 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 |