move domain list mutex initialization to earlier in the boot sequence so

statically configured modules like netgraph can call net_init_domain

Noticed by:	D.Rock@t-online.de (D. Rock)
This commit is contained in:
sam 2003-09-02 20:59:23 +00:00
parent f18bc95242
commit 00d7b50d99

View File

@ -71,6 +71,7 @@ static void pfslowtimo(void *);
struct domain *domains; /* registered protocol domains */
struct mtx dom_mtx; /* domain list lock */
MTX_SYSINIT(domain, &dom_mtx, "domain list", MTX_DEF);
/*
* Add a new protocol domain to the list of supported domains
@ -130,8 +131,6 @@ domaininit(void *dummy)
NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
uma_zone_set_max(socket_zone, maxsockets);
mtx_init(&dom_mtx, "domain list lock", NULL, MTX_DEF);
if (max_linkhdr < 16) /* XXX */
max_linkhdr = 16;