| version 1.181, 2010/01/03 09:42:22 |
version 1.182, 2010/01/20 23:40:42 |
|
|
| pool_cache_invalidate(pool_cache_t pc) |
pool_cache_invalidate(pool_cache_t pc) |
| { |
{ |
| pcg_t *full, *empty, *part; |
pcg_t *full, *empty, *part; |
| |
#if 0 |
| uint64_t where; |
uint64_t where; |
| |
|
| if (ncpu < 2 || !mp_online) { |
if (ncpu < 2 || !mp_online) { |
| Line 2333 pool_cache_invalidate(pool_cache_t pc) |
|
| Line 2334 pool_cache_invalidate(pool_cache_t pc) |
|
| where = xc_broadcast(0, (xcfunc_t)pool_cache_xcall, pc, NULL); |
where = xc_broadcast(0, (xcfunc_t)pool_cache_xcall, pc, NULL); |
| xc_wait(where); |
xc_wait(where); |
| } |
} |
| |
#endif |
| mutex_enter(&pc->pc_lock); |
mutex_enter(&pc->pc_lock); |
| full = pc->pc_fullgroups; |
full = pc->pc_fullgroups; |
| empty = pc->pc_emptygroups; |
empty = pc->pc_emptygroups; |