Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Use splvm() instead of splhigh() when accessing the...



details:   https://anonhg.NetBSD.org/src/rev/3bb8df4eb2ba
branches:  trunk
changeset: 543348:3bb8df4eb2ba
user:      pk <pk%NetBSD.org@localhost>
date:      Sun Feb 23 21:25:19 2003 +0000

description:
Use splvm() instead of splhigh() when accessing the internal page header pool.

diffstat:

 sys/kern/subr_pool.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 4cdd09529e53 -r 3bb8df4eb2ba sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c      Sun Feb 23 20:01:31 2003 +0000
+++ b/sys/kern/subr_pool.c      Sun Feb 23 21:25:19 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_pool.c,v 1.84 2003/01/18 10:06:33 thorpej Exp $   */
+/*     $NetBSD: subr_pool.c,v 1.85 2003/02/23 21:25:19 pk Exp $        */
 
 /*-
  * Copyright (c) 1997, 1999, 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.84 2003/01/18 10:06:33 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.85 2003/02/23 21:25:19 pk Exp $");
 
 #include "opt_pool.h"
 #include "opt_poollog.h"
@@ -329,7 +329,7 @@
                pool_allocator_free(pp, ph->ph_page);
                if ((pp->pr_roflags & PR_PHINPAGE) == 0) {
                        LIST_REMOVE(ph, ph_hashlist);
-                       s = splhigh();
+                       s = splvm();
                        pool_put(&phpool, ph);
                        splx(s);
                }
@@ -611,7 +611,7 @@
        if ((pp->pr_roflags & PR_PHINPAGE) != 0)
                ph = (struct pool_item_header *) (storage + pp->pr_phoffset);
        else {
-               s = splhigh();
+               s = splvm();
                ph = pool_get(&phpool, flags);
                splx(s);
        }
@@ -1322,7 +1322,7 @@
                        continue;
                }
                LIST_REMOVE(ph, ph_hashlist);
-               s = splhigh();
+               s = splvm();
                pool_put(&phpool, ph);
                splx(s);
        }



Home | Main Index | Thread Index | Old Index