diff options
author | alc <alc@FreeBSD.org> | 2010-05-06 18:58:32 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-05-06 18:58:32 +0000 |
commit | fecc56fac19c93c470f79d1f557c149bd3c1e9b0 (patch) | |
tree | bd69226428af1da2a0d4fb0ab151f30836763046 /sys/vm/vm_glue.c | |
parent | f26ccb52af3d824a0efc9843c9a039e07fcdcb8c (diff) | |
download | FreeBSD-src-fecc56fac19c93c470f79d1f557c149bd3c1e9b0.zip FreeBSD-src-fecc56fac19c93c470f79d1f557c149bd3c1e9b0.tar.gz |
Eliminate page queues locking around most calls to vm_page_free().
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index f86212f..0b9d92a 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -258,9 +258,7 @@ vm_imgact_hold_page(vm_object_t object, vm_ooffset_t offset) goto out; if (rv != VM_PAGER_OK) { vm_page_lock(m); - vm_page_lock_queues(); vm_page_free(m); - vm_page_unlock_queues(); vm_page_unlock(m); m = NULL; goto out; @@ -437,10 +435,8 @@ vm_thread_stack_dispose(vm_object_t ksobj, vm_offset_t ks, int pages) if (m == NULL) panic("vm_thread_dispose: kstack already missing?"); vm_page_lock(m); - vm_page_lock_queues(); vm_page_unwire(m, 0); vm_page_free(m); - vm_page_unlock_queues(); vm_page_unlock(m); } VM_OBJECT_UNLOCK(ksobj); |