diff options
author | sam <sam@FreeBSD.org> | 2003-09-02 20:59:23 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-09-02 20:59:23 +0000 |
commit | 8c368dfa999ff6a0fb1092772fb109c69dcce003 (patch) | |
tree | b4bb33fa55fabdb0bf37bcdd17718e8505f03358 /sys/kern/uipc_domain.c | |
parent | 2432ffe7fb7e8c66deef64402e25c458e2132707 (diff) | |
download | FreeBSD-src-8c368dfa999ff6a0fb1092772fb109c69dcce003.zip FreeBSD-src-8c368dfa999ff6a0fb1092772fb109c69dcce003.tar.gz |
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)
Diffstat (limited to 'sys/kern/uipc_domain.c')
-rw-r--r-- | sys/kern/uipc_domain.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c index 98fba8f..33a21c5 100644 --- a/sys/kern/uipc_domain.c +++ b/sys/kern/uipc_domain.c @@ -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; |