| version 1.112.2.4, 2006/06/26 12:52:57 |
version 1.112.2.5, 2006/08/11 15:45:46 |
| Line 903 pool_get(struct pool *pp, int flags) |
|
| Line 903 pool_get(struct pool *pp, int flags) |
|
| #endif /* DIAGNOSTIC */ |
#endif /* DIAGNOSTIC */ |
| #ifdef LOCKDEBUG |
#ifdef LOCKDEBUG |
| if (flags & PR_WAITOK) |
if (flags & PR_WAITOK) |
| simple_lock_only_held(NULL, "pool_get(PR_WAITOK)"); |
ASSERT_SLEEPABLE(NULL, "pool_get(PR_WAITOK)"); |
| SCHED_ASSERT_UNLOCKED(); |
SCHED_ASSERT_UNLOCKED(); |
| #endif |
#endif |
| |
|
| Line 2011 pool_cache_get_paddr(struct pool_cache * |
|
| Line 2011 pool_cache_get_paddr(struct pool_cache * |
|
| |
|
| #ifdef LOCKDEBUG |
#ifdef LOCKDEBUG |
| if (flags & PR_WAITOK) |
if (flags & PR_WAITOK) |
| simple_lock_only_held(NULL, "pool_cache_get(PR_WAITOK)"); |
ASSERT_SLEEPABLE(NULL, "pool_cache_get(PR_WAITOK)"); |
| #endif |
#endif |
| |
|
| simple_lock(&pc->pc_slock); |
simple_lock(&pc->pc_slock); |