freebsd with flexible iflib nic queues
Go to file
Xin LI 8e33bced3c Try to close a potential, but serious race in our VM subsystem.
Historically, our contigmalloc1() and contigmalloc2() assumes
that a page in PQ_CACHE can be unconditionally reused by busying
and freeing it.  Unfortunatelly, when object happens to be not
NULL, the code will set m->object to NULL and disregard the fact
that the page is actually in the VM page bucket, resulting in
page bucket hash table corruption and finally, a filesystem
corruption, or a 'page not in hash' panic.

This commit has borrowed the idea taken from DragonFlyBSD's fix
to the VM fix by Matthew Dillon[1].  This version of patch will
do the following checks:

	- When scanning pages in PQ_CACHE, check hold_count and
	  skip over pages that are held temporarily.
	- For pages in PQ_CACHE and selected as candidate of being
	  freed, check if it is busy at that time.

Note:  It seems that this is might be unrelated to kern/72539.

Obtained from:	DragonFlyBSD, sys/vm/vm_contig.c,v 1.11 and 1.12 [1]
Reminded by:	Matt Dillon
Reworked by:	alc
MFC After:	1 week
2004-11-24 18:56:13 +00:00
bin Do not emit a spurious warning when "directory" argument 2004-11-20 00:41:08 +00:00
contrib Fix a reference from pool(9) -> zone(9), but keep on talking about "memory 2004-11-14 17:05:54 +00:00
crypto Better Xlist command line. 2004-10-28 16:13:28 +00:00
etc Teach periodic(8) security output to display information about blocked 2004-11-24 18:41:53 +00:00
games s/Here about/Hear about/ and sort accordingly. 2004-11-12 10:15:43 +00:00
gnu [Sorry, forgot to commit my source changes in my previous commit.] 2004-11-22 16:08:19 +00:00
include Fixed transition from SHARED=symlinks to SHARED=copies. 2004-11-17 23:48:17 +00:00
kerberos5 Introduce the PRECIOUSPROG knob in bsd.prog.mk, similar 2004-11-03 18:01:21 +00:00
lib Fix computation of the 'n' argument to mbrtowc (through XMBRTOWC) to avoid 2004-11-21 03:14:32 +00:00
libexec Implement a dummy atomic_cmpset_32(). It should be safe to use it in rtld as 2004-11-23 16:32:34 +00:00
release Autogenerate device listings for hptmv(4) 2004-11-20 02:46:02 +00:00
rescue Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set. 2004-11-13 20:40:32 +00:00
sbin Sync usage() and SYNOPSIS. 2004-11-13 17:26:54 +00:00
secure Update for OpenSSH 3.9p1. 2004-10-28 16:04:23 +00:00
share Note that 4.11 will be the first 4.x based release to include 2004-11-24 18:45:46 +00:00
sys Try to close a potential, but serious race in our VM subsystem. 2004-11-24 18:56:13 +00:00
tools Remove regression tests for the obsolete rune interface. 2004-11-21 03:21:22 +00:00
usr.bin Add a `-m month' flag to provide a more convenient interface for 2004-11-23 22:57:17 +00:00
usr.sbin o Report charge/discharge rate and remaining capacity in the proper 2004-11-24 16:02:20 +00:00
COPYRIGHT Update the COPYRIGHT file to include FreeBSD's compilation copyright 2003-12-31 22:35:22 +00:00
installworld_newk Commit the first set of files for changing time_t on freebsd/sparc64 2004-03-03 19:36:20 +00:00
installworld_oldk Commit the first set of files for changing time_t on freebsd/sparc64 2004-03-03 19:36:20 +00:00
MAINTAINERS Remove vinum from the list. I no longer have the time and energy to 2004-09-08 02:08:33 +00:00
Makefile Convert tools/lib32/build.sh into world connectable hooks. This still 2004-11-06 03:14:26 +00:00
Makefile.inc1 Hopefully fix the "aicasm" build-tool issue when using ${KERNSRCDIR} 2004-11-23 09:09:47 +00:00
README KerberosIV de-orbit burn continues. Disconnect from "make world". 2003-03-08 10:01:26 +00:00
UPDATING Add a note about 80386 support being removed from HEAD. 2004-11-16 21:18:41 +00:00
UPDATING.64BTT Add a tip for people who are using database-related ports on a sparc64 2004-03-17 01:59:47 +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
``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.

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.

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