summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs/devfs_devs.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-09-18 15:03:31 +0000
committerkib <kib@FreeBSD.org>2010-09-18 15:03:31 +0000
commitd25cc0d8783c134a0201e3b7b1a2f8635afd54bb (patch)
tree8328cdf8301c6d159bb10e1a5a03b15f0b932857 /sys/fs/devfs/devfs_devs.c
parent7066648caf203091037ddc9dc452bcb0ef9aad45 (diff)
downloadFreeBSD-src-d25cc0d8783c134a0201e3b7b1a2f8635afd54bb.zip
FreeBSD-src-d25cc0d8783c134a0201e3b7b1a2f8635afd54bb.tar.gz
Adopt the deferring of object deallocation for the deleted map entries
on map unlock to the lock downgrade and later read unlock operation. System map entries cannot be backed by OBJT_VNODE objects, no need to defer deallocation for them. Map entries from user maps do not require the owner map for deallocation, and can be accumulated in the thread-local list for freeing when a user map is unlocked. Move the collection of entries for deferred reclamation into vm_map_delete(). Create helper vm_map_process_deferred(), that is called from locations where processing is feasible. Do not process deferred entries in vm_map_unlock_and_wait() since map_sleep_mtx is held. Reviewed by: alc, rstone (previous versions) Tested by: pho MFC after: 2 weeks
Diffstat (limited to 'sys/fs/devfs/devfs_devs.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud