diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2011-07-05 20:00:19 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2011-07-05 20:00:19 +0000 |
commit | 7646001c43686fe701f9038c0f920fa9548d322b (patch) | |
tree | c0049c9ccb43f27d3c7aec9f7979be782ec7d680 /sys | |
parent | 5e95c28c0786a92cc048fb3469ba2cdcfef2c849 (diff) |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_pool.c | 5 |
1 files changed, 1 insertions, 4 deletions
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; } /* |