From 7646001c43686fe701f9038c0f920fa9548d322b Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 5 Jul 2011 20:00:19 +0000 Subject: Remove a broken optimization found by the new pool_chk code. It leaves an empty page in curpage, and this inconsistency slowly spreads until finally one of the other pool checks freaks out. ok art deraadt --- sys/kern/subr_pool.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index 29e1bbb6576..35c9b9a755f 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.105 2011/07/05 16:36:15 tedu Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.106 2011/07/05 20:00:18 tedu Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -783,10 +783,7 @@ pool_do_put(struct pool *pp, void *v) if (pp->pr_flags & PR_WANTED) { pp->pr_flags &= ~PR_WANTED; - if (ph->ph_nmissing == 0) - pp->pr_nidle++; wakeup(pp); - return; } /* -- cgit v1.2.3