freebsd-nq/sys
Matthew Dillon 06ae1e91c4 This brings in a Yahoo coredump patch from Paul, with additional mods by
me (addition of vn_rdwr_inchunks).  The problem Yahoo is solving is that
if you have large process images core dumping, or you have a large number of
forked processes all core dumping at the same time, the original coredump code
would leave the vnode locked throughout.  This can cause the directory vnode
to get locked up, which can cause the parent directory vnode to get locked
up, and so on all the way to the root node, locking the entire machine up
for extremely long periods of time.

This patch solves the problem in two ways.  First it uses an advisory
non-blocking lock to abort multiple processes trying to core to the same
file.  Second (my contribution) it chunks up the writes and uses bwillwrite()
to avoid holding the vnode locked while blocking in the buffer cache.

Submitted by:	ps
Reviewed by:	dillon
MFC after:	2 weeks
2001-09-08 20:02:33 +00:00
..
alpha Round of cleanups and enhancements. These include (in random order): 2001-09-08 19:07:04 +00:00
amd64 Now that this code is MD, we don't need the i386 ifdefs. 2001-09-07 03:00:30 +00:00
arm o Remove some GCCisms in src/powerpc/include/endian.h. 2001-08-30 00:04:19 +00:00
boot Add missing entry to memory type name table and adjust field widths. 2001-09-08 12:32:12 +00:00
cam Attach to a CD device even when the SCSI status is 'busy'. 2001-09-03 05:04:47 +00:00
coda
compat This brings in a Yahoo coredump patch from Paul, with additional mods by 2001-09-08 20:02:33 +00:00
conf Add options to select between 4k, 8k and 16k page sizes on ia64. The 2001-09-07 11:03:39 +00:00
contrib Merge our local branch changes with the 20010831 snapshot. 2001-09-07 02:52:26 +00:00
crypto
ddb No tokens should follow #endif. 2001-08-15 03:38:49 +00:00
dev Don't call tsleep from AcpiOsStall(), call DELAY() always instead. 2001-09-08 17:03:26 +00:00
fs smbfs_advlock: simplify overflow checks (copy from kern_lockf.c) 2001-08-29 18:59:04 +00:00
geom Kill the NCCD constant by modernizing the ccd driver. 2001-09-04 08:33:30 +00:00
gnu
i4b make driver compile under 4.3-STABLE 2001-07-22 19:55:05 +00:00
i386 Round of cleanups and enhancements. These include (in random order): 2001-09-08 19:07:04 +00:00
ia64 Add options to select between 4k, 8k and 16k page sizes on ia64. The 2001-09-07 11:03:39 +00:00
isa Update the atkbdc, atkbd, and psm drivers to probe/attach 2001-09-06 12:09:26 +00:00
isofs/cd9660
kern This brings in a Yahoo coredump patch from Paul, with additional mods by 2001-09-08 20:02:33 +00:00
libkern Fixed some typos, verboseness and misformatting in comments. 2001-08-30 12:30:58 +00:00
modules Round of cleanups and enhancements. These include (in random order): 2001-09-08 19:07:04 +00:00
net Patches from KAME to remove usage of Varargs in existing 2001-09-07 07:19:12 +00:00
netatalk
netatm Wrap array accesses in macros, which also happen to be lvalues: 2001-09-06 02:40:43 +00:00
netgraph First pass at porting John's "accept" changes to 2001-09-07 07:12:51 +00:00
netinet Remove some un-needed code that was accidentally included in 2001-09-07 07:24:28 +00:00
netinet6 Patches from KAME to remove usage of Varargs in existing 2001-09-07 07:19:12 +00:00
netipx
netkey printed current sequence number of the SA. accordingly, changed 2001-08-06 19:40:01 +00:00
netnatm
netncp Mark some functions as __printflike() and/or taking const char * arguments 2001-08-20 12:53:36 +00:00
netns
netsmb Map errdos:67 to the ENOENT. 2001-08-21 09:16:57 +00:00
nfs Pushdown Giant for nfs syscalls (nfssvc()) 2001-08-31 22:39:36 +00:00
nfsclient Pushdown Giant for nfs syscalls (nfssvc()) 2001-08-31 22:39:36 +00:00
nfsserver Pushdown Giant for nfs syscalls (nfssvc()) 2001-08-31 22:39:36 +00:00
pc98 Zap #if 0'ed map init code that got moved to the MI area. 2001-09-04 08:42:35 +00:00
pccard Don't panic when we don't know the exact chip that is being used. 2001-09-06 20:55:25 +00:00
pci Update tx(4) to always enable vlan(4) support. 2001-09-05 23:04:53 +00:00
posix4 Protect pri_to_rtp() with sched_lock when needed. 2001-09-02 00:52:11 +00:00
powerpc style(9) the structure definitions. 2001-09-05 01:36:46 +00:00
rpc
sparc64 style(9) the structure definitions. 2001-09-05 16:20:30 +00:00
svr4
sys This brings in a Yahoo coredump patch from Paul, with additional mods by 2001-09-08 20:02:33 +00:00
tools
ufs Use ACL_PERM_NONE instead of hardcoding 0 when initializing 2001-09-01 23:18:15 +00:00
vm Process priority is locked by the sched_lock, not the proc lock. 2001-09-01 20:16:30 +00:00
Makefile