Add calls to uma_zone_set_max() to restore previously enforced limits.
This commit is contained in:
parent
736ee5907f
commit
586c8b6b29
@ -127,6 +127,7 @@ domaininit(void *dummy)
|
||||
|
||||
socket_zone = uma_zcreate("socket", sizeof(struct socket), NULL, NULL,
|
||||
NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
|
||||
uma_zone_set_max(socket_zone, maxsockets);
|
||||
|
||||
if (max_linkhdr < 16) /* XXX */
|
||||
max_linkhdr = 16;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user