| version 1.48, 2000/12/11 05:22:56 |
version 1.49, 2001/01/14 02:06:21 |
| Line 1306 pool_drain(void *arg) |
|
| Line 1306 pool_drain(void *arg) |
|
| struct pool *pp; |
struct pool *pp; |
| int s; |
int s; |
| |
|
| s = splimp(); |
s = splvm(); |
| simple_lock(&pool_head_slock); |
simple_lock(&pool_head_slock); |
| |
|
| if (drainpp == NULL && (drainpp = TAILQ_FIRST(&pool_head)) == NULL) |
if (drainpp == NULL && (drainpp = TAILQ_FIRST(&pool_head)) == NULL) |
| Line 1331 pool_print(struct pool *pp, const char * |
|
| Line 1331 pool_print(struct pool *pp, const char * |
|
| { |
{ |
| int s; |
int s; |
| |
|
| s = splimp(); |
s = splvm(); |
| if (simple_lock_try(&pp->pr_slock) == 0) { |
if (simple_lock_try(&pp->pr_slock) == 0) { |
| printf("pool %s is locked; try again later\n", |
printf("pool %s is locked; try again later\n", |
| pp->pr_wchan); |
pp->pr_wchan); |