cvs commit: src/sys/dev/en midway.c src/sys/kern kern_mbuf.c
kern_proc.c kern_thread.c sys_pipe.c src/sys/security/mac
mac_label.c src/sys/sys mbuf.h src/sys/vm uma.h uma_core.c
uma_dbg.c uma_dbg.h vm_map.c vm_object.c
Brian Feldman
green at FreeBSD.org
Sun Aug 1 17:18:36 PDT 2004
green 2004-08-02 00:18:36 UTC
FreeBSD src repository
Modified files:
sys/dev/en midway.c
sys/kern kern_mbuf.c kern_proc.c kern_thread.c
sys_pipe.c
sys/security/mac mac_label.c
sys/sys mbuf.h
sys/vm uma.h uma_core.c uma_dbg.c uma_dbg.h
vm_map.c vm_object.c
Log:
* Add a "how" argument to uma_zone constructors and initialization functions
so that they know whether the allocation is supposed to be able to sleep
or not.
* Allow uma_zone constructors and initialation functions to return either
success or error. Almost all of the ones in the tree currently return
success unconditionally, but mbuf is a notable exception: the packet
zone constructor wants to be able to fail if it cannot suballocate an
mbuf cluster, and the mbuf allocators want to be able to fail in general
in a MAC kernel if the MAC mbuf initializer fails. This fixes the
panics people are seeing when they run out of memory for mbuf clusters.
* Allow debug.nosleepwithlocks on WITNESS to be disabled, without changing
the default.
Both bmilekic and jeff have reviewed the changes made to make failable
zone allocations work.
Revision Changes Path
1.63 +13 -22 src/sys/dev/en/midway.c
1.3 +32 -35 src/sys/kern/kern_mbuf.c
1.213 +8 -6 src/sys/kern/kern_proc.c
1.190 +12 -8 src/sys/kern/kern_thread.c
1.174 +8 -6 src/sys/kern/sys_pipe.c
1.2 +4 -3 src/sys/security/mac/mac_label.c
1.156 +0 -5 src/sys/sys/mbuf.h
1.19 +8 -4 src/sys/vm/uma.h
1.104 +124 -50 src/sys/vm/uma_core.c
1.15 +18 -18 src/sys/vm/uma_dbg.c
1.5 +4 -4 src/sys/vm/uma_dbg.h
1.350 +9 -7 src/sys/vm/vm_map.c
1.331 +4 -3 src/sys/vm/vm_object.c
More information about the cvs-src
mailing list