| version 1.132, 2007/10/11 19:45:25 |
version 1.133, 2007/10/11 19:53:37 |
| Line 2353 pool_allocator_alloc(struct pool *pp, in |
|
| Line 2353 pool_allocator_alloc(struct pool *pp, in |
|
| struct pool_allocator *pa = pp->pr_alloc; |
struct pool_allocator *pa = pp->pr_alloc; |
| void *res; |
void *res; |
| |
|
| LOCK_ASSERT(!simple_lock_held(&pp->pr_slock)); |
|
| |
|
| res = (*pa->pa_alloc)(pp, flags); |
res = (*pa->pa_alloc)(pp, flags); |
| if (res == NULL && (flags & PR_WAITOK) == 0) { |
if (res == NULL && (flags & PR_WAITOK) == 0) { |
| /* |
/* |
| Line 2375 pool_allocator_free(struct pool *pp, voi |
|
| Line 2373 pool_allocator_free(struct pool *pp, voi |
|
| { |
{ |
| struct pool_allocator *pa = pp->pr_alloc; |
struct pool_allocator *pa = pp->pr_alloc; |
| |
|
| LOCK_ASSERT(!simple_lock_held(&pp->pr_slock)); |
|
| |
|
| (*pa->pa_free)(pp, v); |
(*pa->pa_free)(pp, v); |
| } |
} |
| |
|