version 1.101.2.13, 2008/03/24 09:39:02 |
version 1.152, 2008/03/02 12:19:58 |
Line 995 pool_get(struct pool *pp, int flags) |
|
Line 995 pool_get(struct pool *pp, int flags) |
|
|
|
#endif /* DIAGNOSTIC */ |
#endif /* DIAGNOSTIC */ |
#ifdef LOCKDEBUG |
#ifdef LOCKDEBUG |
if (flags & PR_WAITOK) { |
if (flags & PR_WAITOK) |
ASSERT_SLEEPABLE(); |
ASSERT_SLEEPABLE(NULL, "pool_get(PR_WAITOK)"); |
} |
|
#endif |
#endif |
|
|
mutex_enter(&pp->pr_lock); |
mutex_enter(&pp->pr_lock); |
Line 2522 pool_cache_get_paddr(pool_cache_t pc, in |
|
Line 2521 pool_cache_get_paddr(pool_cache_t pc, in |
|
int s; |
int s; |
|
|
#ifdef LOCKDEBUG |
#ifdef LOCKDEBUG |
if (flags & PR_WAITOK) { |
if (flags & PR_WAITOK) |
ASSERT_SLEEPABLE(); |
ASSERT_SLEEPABLE(NULL, "pool_cache_get(PR_WAITOK)"); |
} |
|
#endif |
#endif |
|
|
cc = pool_cache_cpu_enter(pc, &s); |
cc = pool_cache_cpu_enter(pc, &s); |
|
|
snprintf(cpucachestr, |
snprintf(cpucachestr, |
sizeof(cpucachestr), |
sizeof(cpucachestr), |
"cached by CPU %u", |
"cached by CPU %u", |
ci->ci_index); |
(u_int)ci->ci_cpuid); |
goto print; |
goto print; |
} |
} |
} |
} |