Change some low-hanging splimp() calls to splvm().

This commit is contained in:
thorpej 2001-01-14 02:06:21 +00:00
parent 979919ee0f
commit b5104c1ca5
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr_pool.c,v 1.48 2000/12/11 05:22:56 thorpej Exp $ */
/* $NetBSD: subr_pool.c,v 1.49 2001/01/14 02:06:21 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1999, 2000 The NetBSD Foundation, Inc.
@ -1306,7 +1306,7 @@ pool_drain(void *arg)
struct pool *pp;
int s;
s = splimp();
s = splvm();
simple_lock(&pool_head_slock);
if (drainpp == NULL && (drainpp = TAILQ_FIRST(&pool_head)) == NULL)
@ -1331,7 +1331,7 @@ pool_print(struct pool *pp, const char *modif)
{
int s;
s = splimp();
s = splvm();
if (simple_lock_try(&pp->pr_slock) == 0) {
printf("pool %s is locked; try again later\n",
pp->pr_wchan);

View File

@ -1,4 +1,4 @@
/* $NetBSD: uipc_mbuf.c,v 1.51 2000/11/14 20:05:28 itojun Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.52 2001/01/14 02:06:22 thorpej Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -277,7 +277,7 @@ m_reclaim(how)
struct domain *dp;
struct protosw *pr;
struct ifnet *ifp;
int s = splimp();
int s = splvm();
for (dp = domains; dp; dp = dp->dom_next)
for (pr = dp->dom_protosw;