Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Nov 2010 07:09:05 +0000 (UTC)
From:      Lawrence Stewart <lstewart@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/netinet cc.h tcp_subr.c src/sys/netinet/cc cc.c
Message-ID:  <201011160709.oAG79EEJ086631@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <to.my.trociny at gmail com>
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011160709.oAG79EEJ086631>