From a688ba73311e34848e1e1a5cf00ab18b8c04b31d Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Thu, 4 Jun 2009 02:56:15 +0000 Subject: don't grab the lock just to read uvmexp.free. "that's retarded" art@. --- sys/uvm/uvm_swap.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/uvm/uvm_swap.c') 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; -- cgit v1.2.3