freebsd-nq/sys
Scott Long 7628acd8ee Up until now, the free SCB pool received only a small initial allocation,
and new SCBs were allocated on demand later if needed.  This has two
problems.  First, allocating SCBs involves allocating contiguous memory,
and if memory is exhausted then the VM will try to page out to satisfy
the request, leading to recursion and deadlock.  The second problem is
that it can cause lock order reversals due to parts of the VM still being
under Giant.

Fix the problem be allocating the full pool at driver attach, when it is
safe to do so.
2007-04-19 18:53:52 +00:00
..
amd64 Fix style(9) and comments. 2007-04-18 20:12:05 +00:00
arm Don't expose the uart_ops structure directly, but instead have 2007-04-02 22:00:22 +00:00
boot Add zfs_load here. 2007-04-09 22:09:09 +00:00
bsm Change $P4$ ID strings to P4 ID strings so that they are not auto-expanded 2007-04-17 12:27:08 +00:00
cam Avoid problems with make_dev. 2007-04-19 18:14:33 +00:00
cddl MFp4: Fix automatic snapshot mount when unprivileged user does lookup 2007-04-18 15:24:48 +00:00
coda Make insmntque() externally visibile and allow it to fail (e.g. during 2007-03-13 01:50:27 +00:00
compat MFp4: Fix automatic snapshot mount when unprivileged user does lookup 2007-04-18 15:24:48 +00:00
conf Rename the trunk(4) driver to lagg(4) as it is too similar to vlan trunking. 2007-04-17 00:35:11 +00:00
contrib MFp4: We check for PRIV_VFS_MOUNT already in mount(2) syscall and we don't 2007-04-18 15:22:07 +00:00
crypto Overhaul driver/subsystem api's: 2007-03-21 03:42:51 +00:00
ddb Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form. 2007-01-17 15:05:52 +00:00
dev Up until now, the free SCB pool received only a small initial allocation, 2007-04-19 18:53:52 +00:00
fs Avoid "unused variable" warning when building without PSEUDOFS_TRACE. 2007-04-15 20:35:18 +00:00
gdb
geom -) Correct sdcount for a plex when removing or adding subdisks. 2007-04-12 17:54:35 +00:00
gnu Change #include <machine/pcpu.h> to #include <sys/pcpu.h> 2007-04-01 12:48:10 +00:00
i4b Tell the user when the setup of the interrupt handler failed and return 2007-04-01 16:52:54 +00:00
i386 style nit 2007-04-19 09:18:51 +00:00
ia64 Remove trailing '.' for consistency! 2007-04-10 21:40:13 +00:00
isa When trying to allocate a PnP BIOS memory resource, the code loops trying 2007-04-17 15:14:23 +00:00
kern Fix witness(4) warnings about mutex use. 2007-04-19 08:02:51 +00:00
libkern strchr() and strrchr() are already present in the kernel, but with less 2007-04-10 21:42:12 +00:00
modules Rename the trunk(4) driver to lagg(4) as it is too similar to vlan trunking. 2007-04-17 00:35:11 +00:00
net Rename the trunk(4) driver to lagg(4) as it is too similar to vlan trunking. 2007-04-17 00:35:11 +00:00
net80211 change ic_modecaps to a bit vector and use setbit, et. al. 2007-03-11 22:37:32 +00:00
netatalk Use privilege PRIV_NET_ADDIFADDR rather than suser() to authorize 2007-02-19 22:40:02 +00:00
netatm Fix use after free bug: use temporary variable to hold next entry in linked 2007-04-03 12:45:10 +00:00
netgraph We don't need spinning locks here. Change them to the adaptive mutexes. This 2007-03-31 15:43:06 +00:00
netinet - More work on making send lock contention. 2007-04-19 11:28:43 +00:00
netinet6 - fix source address selection when picking an acceptable address 2007-04-14 09:44:09 +00:00
netipsec Update comment regarding how we check privilege on FreeBSD: we now use 2007-04-10 16:09:00 +00:00
netipx Build ipx_ip.c only if options IPXIP is defined. No functional change. 2007-02-26 11:55:34 +00:00
netkey
netnatm s/destory/destroy/ (except for the code in contrib/). 2007-04-16 12:31:35 +00:00
netncp Use pause() rather than tsleep() on stack variables and function pointers. 2007-02-27 17:23:29 +00:00
netsmb Replace custom file descriptor array sleep lock constructed using a mutex 2007-04-04 09:11:34 +00:00
nfs
nfs4client Rename some functions and variables from nfs_* to nfs4_* to avoid 2007-01-25 14:33:13 +00:00
nfsclient Don't destroy a mutex just before we use it, instead, 2007-03-23 08:52:36 +00:00
nfsserver In nfsrv_rcv(), don't reacquire the nfs server lock until after 2007-04-15 15:50:50 +00:00
opencrypto Replace custom file descriptor array sleep lock constructed using a mutex 2007-04-04 09:11:34 +00:00
pc98 Remove trailing '.' for consistency! 2007-04-10 21:40:13 +00:00
pccard
pci Oops, fix intsmb(4) attach. Don't overwrite the 'value' holding the 2007-04-19 17:14:06 +00:00
powerpc Remove trailing '.' for consistency! 2007-04-10 21:40:13 +00:00
rpc Move rpc/types.h under sys/, as this is used by ZFS kernel module. 2007-04-10 22:10:16 +00:00
security Remove $P4$ that snuck into CVS from Perforce. 2007-04-17 12:24:18 +00:00
sparc64 Remove trailing '.' for consistency! 2007-04-10 21:40:13 +00:00
sun4v Remove trailing '.' for consistency! 2007-04-10 21:40:13 +00:00
sys Make inet6_rth_* family of functions more compliant with RFC3542: 2007-04-19 15:48:16 +00:00
tools Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00
ufs Fix the NAMEI zone leak when snapshot was successfully created. 2007-04-10 09:31:42 +00:00
vm Correct contigmalloc2()'s implementation of M_ZERO. Specifically, 2007-04-19 05:39:54 +00:00
Makefile o Add bsm and security to a list of cscope dirs. 2007-04-14 16:29:15 +00:00