Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/kern pullup 1.26->1.27 (pk): deal with missing "rai...



details:   https://anonhg.NetBSD.org/src/rev/c973e29a8511
branches:  netbsd-1-4
changeset: 468960:c973e29a8511
user:      perry <perry%NetBSD.org@localhost>
date:      Thu Jun 24 16:14:35 1999 +0000

description:
pullup 1.26->1.27 (pk): deal with missing "raise interrupt level" code

diffstat:

 sys/kern/subr_pool.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r 13fb888022ec -r c973e29a8511 sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c      Thu Jun 24 16:13:21 1999 +0000
+++ b/sys/kern/subr_pool.c      Thu Jun 24 16:14:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_pool.c,v 1.21.2.2 1999/04/07 00:34:55 thorpej Exp $       */
+/*     $NetBSD: subr_pool.c,v 1.21.2.3 1999/06/24 16:14:35 perry Exp $ */
 
 /*-
  * Copyright (c) 1997, 1999 The NetBSD Foundation, Inc.
@@ -313,8 +313,11 @@
                        pool_destroy(pp);
                        return (NULL);
                }
+               int s;
        }
+               s = splhigh();
 
+               splx(s);
        return (pp);
 }
 
@@ -1048,12 +1051,14 @@
 void
 pool_setlowat(pp, n)
        pool_handle_t   pp;
-       int n;
+       int s, n;
 {
        int error;
 
        simple_lock(&pp->pr_slock);
+               s = splhigh();
 
+               splx(s);
        pp->pr_minitems = n;
        pp->pr_minpages = (n == 0)
                ? 0



Home | Main Index | Thread Index | Old Index