summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_usrreq.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-03-20 05:30:58 +0000
committerjeff <jeff@FreeBSD.org>2002-03-20 05:30:58 +0000
commitdcd2af765542f95ecc4d1a0842c71e1e84733af8 (patch)
tree9496a79c5b1e697141b0de8dcf73a3e31f98a73f /sys/kern/uipc_usrreq.c
parentaa0e8b9e515b3df6d81ffe9b1e252449fe6efb7b (diff)
downloadFreeBSD-src-dcd2af765542f95ecc4d1a0842c71e1e84733af8.zip
FreeBSD-src-dcd2af765542f95ecc4d1a0842c71e1e84733af8.tar.gz
Add calls to uma_zone_set_max() to restore previously enforced limits.
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r--sys/kern/uipc_usrreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index b3ae150..25aecdc 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1074,6 +1074,7 @@ unp_init(void)
{
unp_zone = uma_zcreate("unpcb", sizeof(struct unpcb), NULL, NULL,
NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
+ uma_zone_set_max(unp_zone, nmbclusters);
if (unp_zone == 0)
panic("unp_init");
LIST_INIT(&unp_dhead);
OpenPOWER on IntegriCloud