From owner-cvs-src-old@FreeBSD.ORG Tue Nov 16 07:09:14 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D912610656AB for ; Tue, 16 Nov 2010 07:09:14 +0000 (UTC) (envelope-from lstewart@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C65FF8FC19 for ; Tue, 16 Nov 2010 07:09:14 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oAG79EHO086632 for ; Tue, 16 Nov 2010 07:09:14 GMT (envelope-from lstewart@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oAG79EEJ086631 for cvs-src-old@freebsd.org; Tue, 16 Nov 2010 07:09:14 GMT (envelope-from lstewart@repoman.freebsd.org) Message-Id: <201011160709.oAG79EEJ086631@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to lstewart@repoman.freebsd.org using -f From: Lawrence Stewart Date: Tue, 16 Nov 2010 07:09:05 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet cc.h tcp_subr.c src/sys/netinet/cc cc.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2010 07:09:14 -0000 lstewart 2010-11-16 07:09:05 UTC FreeBSD src repository Modified files: sys/netinet cc.h tcp_subr.c sys/netinet/cc cc.c Log: SVN rev 215377 on 2010-11-16 07:09:05Z by lstewart 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 MFC after: 11 weeks X-MFC with: r215166 Revision Changes Path 1.2 +0 -1 src/sys/netinet/cc.h 1.2 +4 -2 src/sys/netinet/cc/cc.c 1.368 +0 -2 src/sys/netinet/tcp_subr.c