freebsd-nq/sys
Lawrence Stewart 14f57a8b02 cc_init() should only be run once on system boot, but with VIMAGE kernels it
runs on boot and each time a vnet jail is created. Running cc_init() multiple
times results in a panic when attempting to initialise the cc_list lock again,
and so r215166 effectively broke the use of vnet jails.

Switch to using a SYSINIT to run cc_init() on boot. CC algorithm modules loaded
on boot register in the same SI_SUB_PROTO_IFATTACHDOMAIN category as is used in
this patch, so cc_init() is run at SI_ORDER_FIRST to ensure the framework is
initialised before module registration is attempted.

Sponsored by:	FreeBSD Foundation
Reported and tested by:	Mikolaj Golub <to.my.trociny at gmail com>
MFC after:	11 weeks
X-MFC with:	r215166
2010-11-16 07:09:05 +00:00
..
amd64 Do not use __FreeBSD_version prefix for the special osrel version. 2010-11-14 21:59:11 +00:00
arm Provide a mutex around the read/modify/write of the IXP425_GPIO_* 2010-11-14 20:41:22 +00:00
boot Don't display option 2 (to toggle ACPI on or off) on x86 machines if the 2010-11-15 19:55:19 +00:00
bsm
cam When requesting sense data for SIM not doing it automatically (such as 2010-11-08 15:59:41 +00:00
cddl Disable VFS_HOLD placed on mnt_vnodecovered during the mount of a snapshot 2010-11-13 21:09:18 +00:00
compat Remove no-op assignment. 2010-11-15 23:14:14 +00:00
conf Let the linker pick the right output format automatically 2010-11-13 18:38:35 +00:00
contrib o) Recognize the Lanner MR-730. 2010-11-08 21:22:55 +00:00
crypto Change two missed instances of 'retq' in aeskeys_i386.S to 'retl', which 2010-10-13 17:55:53 +00:00
ddb One more use for _SIG_VALID. 2010-07-12 10:18:10 +00:00
dev Make drm(4) build, if not work reliably, on PowerPC. 2010-11-16 03:43:06 +00:00
fs Remove unused includes of <sys/mutex.h> and <machine/mutex.h>. 2010-11-09 20:41:10 +00:00
gdb there must be only one SYSINIT with SI_SUB_RUN_SCHEDULER+SI_ORDER_ANY order 2010-09-30 17:05:23 +00:00
geom Add support for asterisk characters when filling in the GELI password 2010-11-14 14:12:43 +00:00
gnu The r184588 changed the layout of struct export_args, causing an ABI 2010-10-10 07:05:47 +00:00
i386 Do not use __FreeBSD_version prefix for the special osrel version. 2010-11-14 21:59:11 +00:00
ia64 - Remove <machine/mutex.h>. Most of the headers were empty, and the 2010-11-09 20:46:41 +00:00
isa bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
kern Only unlock process if a thread is found. 2010-11-15 07:33:54 +00:00
kgssapi
libkern Add support for asterisk characters when filling in the GELI password 2010-11-14 14:12:43 +00:00
mips Apply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout 2010-11-14 20:38:11 +00:00
modules Correct mips/arm elimination of sym 2010-11-13 20:28:06 +00:00
net Instead of unconditionally emitting .globl's for the __start_set_xxx and 2010-11-14 20:40:55 +00:00
net80211 The ni_rctls checks are used to verify that a ratectl algo has set up 2010-11-14 09:59:52 +00:00
netatalk
netgraph Apply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout 2010-11-14 20:38:11 +00:00
netinet cc_init() should only be run once on system boot, but with VIMAGE kernels it 2010-11-16 07:09:05 +00:00
netinet6 Apply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout 2010-11-14 20:38:11 +00:00
netipsec Apply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout 2010-11-14 20:38:11 +00:00
netipx
netnatm
netncp
netsmb
nfs Fix the type of the 3rd argument for nm_getinfo so that it works 2010-10-19 11:55:58 +00:00
nfsclient Add missing "readahead" to the nfs_opts list. 2010-10-27 14:08:37 +00:00
nfsserver Fix a bug in r214049. The nvp == vp case shall be handled specially 2010-11-05 21:13:16 +00:00
nlm Modify the NFS clients and the NLM so that the NLM can be used 2010-10-19 00:20:00 +00:00
opencrypto Let cryptosoft(4) add its pseudo-device with a specific unit number and its 2010-11-14 13:09:32 +00:00
pc98 Move identical copies of apm_bios.h to sys/x86/include, replace them with 2010-11-11 19:36:21 +00:00
pci Remove standard PCI configuration space register definitions. 2010-11-08 22:10:51 +00:00
powerpc Apply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout 2010-11-14 20:38:11 +00:00
rpc Fix the krpc so that it can handle NFSv3,UDP mounts with a read/write 2010-10-13 00:57:14 +00:00
security Fix typos. 2010-11-09 10:59:09 +00:00
sparc64 Convert drivers somehow missed in r200874 to multipass probing. 2010-11-15 21:58:10 +00:00
sun4v Fix a few more places to use cpumask_t rather than 'u_int'. These are 2010-11-11 16:06:47 +00:00
sys Do not use __FreeBSD_version prefix for the special osrel version. 2010-11-14 21:59:11 +00:00
teken Partially implement the mysterious cons25 \e[x escape sequence. 2010-11-05 00:56:21 +00:00
tools Add an extra comment to the SDT probes definition. This allows us to get 2010-08-22 11:18:57 +00:00
ufs The softdep_setup_freeblocks() adds worklist items before 2010-11-11 11:54:01 +00:00
vm Do not use __FreeBSD_version prefix for the special osrel version. 2010-11-14 21:59:11 +00:00
x86 Move identical copies of apm_bios.h to sys/x86/include, replace them with 2010-11-11 19:36:21 +00:00
xdr
xen Improve the Xen para-virtualized device infrastructure of FreeBSD: 2010-10-19 20:53:30 +00:00
Makefile