FreeBSD src
Go to file
Alexander Kabaev c8b876219f Upgrading a lock does not play well together with acquiring an exclusive lock
and can lead to two threads being granted exclusive access. Check that no one
has the same lock in exclusive  mode before proceeding to acquire it.

The LK_WANT_EXCL and LK_WANT_UPGRADE bits act as mini-locks and can block
other threads.  Normally this is not a problem since the mini locks are
upgraded to full locks and the release of the locks will unblock the other
threads.  However if a thread reset the bits without obtaining a full lock
other threads are not awoken. Add missing wakeups for these cases.

PR:		kern/69964
Submitted by:	Stephan Uphoff <ups at tree dot com>
Very good catch by: Stephan Uphoff <ups at tree dot com>
2004-08-16 15:01:22 +00:00
bin Add a "fillchar" command line argument to dd(1) that permits the user 2004-08-15 19:10:05 +00:00
contrib This patch merges the sort fields for both pages, so you can (for 2004-08-16 07:51:22 +00:00
crypto Add support for C3 Nehemiah ACE ("Padlock") AES crypto. This comes 2004-08-14 13:38:35 +00:00
etc Add 3653/tcp and 3653/udp, since they were specifically requested. 2004-08-16 11:52:22 +00:00
games Add a useful snippet on limitations of inductive reasoning by Bertrand 2004-08-15 19:24:17 +00:00
gnu Improve the usage. Without any arguments, kgdb(1) works on /dev/mem 2004-08-15 02:39:20 +00:00
include Connect RAID3 GEOM class to the build. 2004-08-16 06:36:21 +00:00
kerberos5 Join the 21st century: Cryptography is no longer an optional component 2004-08-06 07:27:08 +00:00
lib Fix compile, s/tp_dtv/tp_tdv/g. 2004-08-16 14:07:38 +00:00
libexec Join the 21st century: Cryptography is no longer an optional component 2004-08-06 07:27:08 +00:00
release Bring back 'NO_FLOPPIES', but as a user external knob. 2004-08-16 10:25:43 +00:00
rescue As with the non-rescue version don't build fore_dnld when NOATM is defined. 2004-08-16 03:16:48 +00:00
sbin Use a local "compress" symbol corresponding to a variable in BSS, 2004-08-16 07:02:14 +00:00
secure Add support for C3 Nehemiah ACE ("Padlock") AES crypto. This comes 2004-08-14 13:38:35 +00:00
share Remove Wiretek UBRJ4 from the list of supported devices. While it is 2004-08-16 10:49:45 +00:00
sys Upgrading a lock does not play well together with acquiring an exclusive lock 2004-08-16 15:01:22 +00:00
tools Remove some debug cruft from the Makefiles and make them ${.OBJDIR} 2004-08-16 09:35:49 +00:00
usr.bin Store a pointer to "null" in struct ndblock's defn member instead of a 2004-08-16 14:18:22 +00:00
usr.sbin Fix installing from SCSI tape drives by catching up device names with 2004-08-16 03:13:12 +00:00
COPYRIGHT
installworld_newk
installworld_oldk
MAINTAINERS Add myself as geom_raid3 maintainer. 2004-08-16 10:43:41 +00:00
Makefile Make make recurse into sub-directories and sub-makes when given 2004-08-09 11:38:41 +00:00
Makefile.inc1 Ensure that a new gensnmptree is built. This should fix the problems 2004-08-11 16:45:20 +00:00
README
UPDATING Add a note about RANDOM_IP_ID. 2004-08-14 16:16:01 +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