| version 1.76, 2002/03/13 10:57:18 |
version 1.77, 2002/07/11 17:18:48 |
| Line 636 pool_get(struct pool *pp, int flags) |
|
| Line 636 pool_get(struct pool *pp, int flags) |
|
| #ifdef DIAGNOSTIC |
#ifdef DIAGNOSTIC |
| if (__predict_false(curproc == NULL && doing_shutdown == 0 && |
if (__predict_false(curproc == NULL && doing_shutdown == 0 && |
| (flags & PR_WAITOK) != 0)) |
(flags & PR_WAITOK) != 0)) |
| panic("pool_get: must have NOWAIT"); |
panic("pool_get: %s: must have NOWAIT", pp->pr_wchan); |
| |
|
| #ifdef LOCKDEBUG |
#ifdef LOCKDEBUG |
| if (flags & PR_WAITOK) |
if (flags & PR_WAITOK) |