summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-06-04 02:56:15 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-06-04 02:56:15 +0000
commita688ba73311e34848e1e1a5cf00ab18b8c04b31d (patch)
tree9c888849cbf4e7a49b06872fc87cc2ca26828fdf /sys/uvm
parent9e819b740a107d9ccd697faf30970b9151b5ba06 (diff)
don't grab the lock just to read uvmexp.free.
"that's retarded" art@.
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_swap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c
index 1822533daa8..43fd09128e2 100644
--- a/sys/uvm/uvm_swap.c
+++ b/sys/uvm/uvm_swap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_swap.c,v 1.89 2009/06/03 22:09:30 thib Exp $ */
+/* $OpenBSD: uvm_swap.c,v 1.90 2009/06/04 02:56:14 oga Exp $ */
/* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */
/*
@@ -358,12 +358,8 @@ uvm_swap_allocpages(struct vm_page **pps, int npages)
boolean_t fail;
/* Estimate if we will succeed */
- uvm_lock_fpageq();
-
fail = uvmexp.free - npages < uvmexp.reserve_kernel;
- uvm_unlock_fpageq();
-
if (fail)
return FALSE;