diff options
author | 2009-06-04 02:56:14 +0000 | |
---|---|---|
committer | 2009-06-04 02:56:14 +0000 | |
commit | 69e05dd90fc9b1caf88928e730cd361399575a27 (patch) | |
tree | 12f2d2828859fa8e683bbffc93cd18950fc736e3 | |
parent | count nifs in enable_network(); allows ftplist to be fetched in the (diff) | |
download | wireguard-openbsd-69e05dd90fc9b1caf88928e730cd361399575a27.tar.xz wireguard-openbsd-69e05dd90fc9b1caf88928e730cd361399575a27.zip |
don't grab the lock just to read uvmexp.free.
"that's retarded" art@.
-rw-r--r-- | sys/uvm/uvm_swap.c | 6 |
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; |