| version 1.128.2.8, 2007/09/09 23:17:14 |
version 1.128.2.9, 2007/09/10 11:13:17 |
| Line 1578 pool_reclaim(struct pool *pp) |
|
| Line 1578 pool_reclaim(struct pool *pp) |
|
| (*pp->pr_drain_hook)(pp->pr_drain_hook_arg, PR_NOWAIT); |
(*pp->pr_drain_hook)(pp->pr_drain_hook_arg, PR_NOWAIT); |
| } |
} |
| |
|
| |
/* Reclaim items from the pool's cache (if any). */ |
| |
if (pp->pr_cache != NULL) |
| |
pool_cache_invalidate(pp->pr_cache); |
| |
|
| if (mutex_tryenter(&pp->pr_lock) == 0) |
if (mutex_tryenter(&pp->pr_lock) == 0) |
| return (0); |
return (0); |
| pr_enter(pp, file, line); |
pr_enter(pp, file, line); |
| |
|
| LIST_INIT(&pq); |
LIST_INIT(&pq); |
| |
|
| /* |
|
| * Reclaim items from the pool's caches. |
|
| */ |
|
| if (pp->pr_cache != NULL) |
|
| pool_cache_invalidate(pp->pr_cache); |
|
| |
|
| getmicrotime(&curtime); |
getmicrotime(&curtime); |
| |
|
| for (ph = LIST_FIRST(&pp->pr_emptypages); ph != NULL; ph = phnext) { |
for (ph = LIST_FIRST(&pp->pr_emptypages); ph != NULL; ph = phnext) { |