| version 1.122.2.1, 2006/09/11 00:12:01 |
version 1.122.2.2, 2006/10/20 20:03:56 |
| Line 929 pool_get(struct pool *pp, int flags) |
|
| Line 929 pool_get(struct pool *pp, int flags) |
|
| #ifdef LOCKDEBUG |
#ifdef LOCKDEBUG |
| if (flags & PR_WAITOK) |
if (flags & PR_WAITOK) |
| ASSERT_SLEEPABLE(NULL, "pool_get(PR_WAITOK)"); |
ASSERT_SLEEPABLE(NULL, "pool_get(PR_WAITOK)"); |
| SCHED_ASSERT_UNLOCKED(); |
|
| #endif |
#endif |
| |
|
| simple_lock(&pp->pr_slock); |
simple_lock(&pp->pr_slock); |
| Line 1149 pool_do_put(struct pool *pp, void *v, st |
|
| Line 1148 pool_do_put(struct pool *pp, void *v, st |
|
| struct pool_item_header *ph; |
struct pool_item_header *ph; |
| |
|
| LOCK_ASSERT(simple_lock_held(&pp->pr_slock)); |
LOCK_ASSERT(simple_lock_held(&pp->pr_slock)); |
| SCHED_ASSERT_UNLOCKED(); |
|
| |
|
| #ifdef DIAGNOSTIC |
#ifdef DIAGNOSTIC |
| if (__predict_false(pp->pr_nout == 0)) { |
if (__predict_false(pp->pr_nout == 0)) { |