Go to file
Don Lewis 5817b78a28 MFC r302338
Fix a race condition between the main thread in aqm_pie_cleanup() and the
callout thread that can cause a kernel panic.  Always do the final cleanup
in the callout thread by passing a separate callout function for that task
to callout_reset_sbt().

Protect the ref_count decrement in the callout with DN_BH_WLOCK().  All
other ref_count manipulation is protected with this lock.

There is still a tiny window between ref_count reaching zero and the end
of the callout function where it is unsafe to unload the module.  Fixing
this would require the use of callout_drain(), but this can't be done
because dummynet holds a mutex and callout_drain() might sleep.

Remove the callout_pending(), callout_active(), and callout_deactivate()
calls from calculate_drop_prob().  They are not needed because this callout
uses callout_init_mtx().

Submitted by:	Rasool Al-Saadi <ralsaadi@swin.edu.au>
Differential Revision:	https://reviews.freebsd.org/D6928
2016-07-08 02:52:39 +00:00
bin MFC r301007: 2016-07-04 14:23:36 +00:00
cddl MFC r298472: MFV r298471: 6052 decouple lzc_create() from the 2016-05-17 08:20:10 +00:00
contrib MFC r302305: MFV r302260: expat 2.2.0. 2016-07-07 04:59:58 +00:00
crypto MFC r299495: 2016-06-10 14:48:10 +00:00
etc MFC r299529,r299540,r299576,r299896: 2016-06-17 22:40:10 +00:00
games MFC r299484, r301574 2016-06-15 06:27:43 +00:00
gnu MFC r301570: 2016-06-11 03:58:59 +00:00
include MFC r300998: 2016-06-18 12:46:50 +00:00
kerberos5 MFC r297282,r297456,r298012,r298013,r298014: 2016-04-23 07:09:23 +00:00
lib MFC r300547 2016-07-06 17:45:38 +00:00
libexec MFC r300691: 2016-06-08 04:49:20 +00:00
release Limit VOLUME_LABEL (first argument to the mkisoimages scripts) 2016-07-03 00:31:33 +00:00
rescue
sbin MFC r300547 2016-07-06 17:45:38 +00:00
secure Hide OPENSSL_cpuid_setup and OPENSSL_ia32cap_P symbols from libcrypto.so. 2016-05-16 22:42:09 +00:00
share MFC 299912 2016-06-23 02:21:37 +00:00
sys MFC r302338 2016-07-08 02:52:39 +00:00
tests MFC r299508: 2016-06-10 18:07:35 +00:00
tools MFC r300861,r300862: 2016-06-08 18:21:25 +00:00
usr.bin MFC r302075: 2016-06-30 12:44:15 +00:00
usr.sbin MFC r300547 2016-07-06 17:45:38 +00:00
.arcconfig MFC r265842,r266120,r266121,r266959,r267148,r269985,r281789,r282261,r285064: 2015-12-29 18:22:06 +00:00
.arclint MFC r265842,r266120,r266121,r266959,r267148,r269985,r281789,r282261,r285064: 2015-12-29 18:22:06 +00:00
COPYRIGHT MFC r292983: 2015-12-31 11:23:39 +00:00
LOCKS
MAINTAINERS
Makefile MFC r301465: 2016-06-09 15:43:00 +00:00
Makefile.inc1 Merge r299077, which provides ability to override NO_INSTALLEXTRAKERNELS. 2016-05-04 17:27:49 +00:00
ObsoleteFiles.inc MFC r296623: 2016-03-17 01:02:34 +00:00
README
UPDATING MFH (r291198, r291260, r291261, r291375, r294325, r294335, r294563) 2016-01-24 22:28:18 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The ``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html