From ef0c913256e9dc1649f9a1717272d7ac66142e52 Mon Sep 17 00:00:00 2001 From: harti Date: Tue, 22 Jul 2003 12:46:30 +0000 Subject: Remove the zone limits for all the zones used in the ATM code. These were a left over from when the private memory pools were converted to use uma zones. The limit of UMA zones, however, works differently. When a zone is limited to only one or two pages than, on multi-cpu systems, processes can get stuck on the zonelimit, because all remaining free items are in caches of other CPUs. Also add rudimentary error handling in some places (panic) when a zone cannot be created. --- sys/netatm/atm_subr.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/netatm/atm_subr.c') diff --git a/sys/netatm/atm_subr.c b/sys/netatm/atm_subr.c index 901de8f..4e72a03 100644 --- a/sys/netatm/atm_subr.c +++ b/sys/netatm/atm_subr.c @@ -114,13 +114,11 @@ atm_initialize() UMA_ALIGN_PTR, 0); if (atm_attributes_zone == NULL) panic("atm_initialize: unable to create attributes zone"); - uma_zone_set_max(atm_attributes_zone, 100); atm_stackq_zone = uma_zcreate("atm stackq", sizeof(struct stackq_entry), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0); if (atm_stackq_zone == NULL) panic("atm_initialize: unable to create stackq zone"); - uma_zone_set_max(atm_stackq_zone, 10); atm_intrq.ifq_maxlen = ATM_INTRQ_MAX; mtx_init(&atm_intrq.ifq_mtx, "atm_inq", NULL, MTX_DEF); -- cgit v1.1