summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-10-12 21:37:59 +0000
committerdyson <dyson@FreeBSD.org>1996-10-12 21:37:59 +0000
commitbf13e7f997852f46fb2757e545567fff0ee41cb5 (patch)
treeaa88b5f65210e2e70229331ac312d3efa41eeea9 /sys
parent57b4eae0a1b560daffdf0c095a7bcc36bc137858 (diff)
downloadFreeBSD-src-bf13e7f997852f46fb2757e545567fff0ee41cb5.zip
FreeBSD-src-bf13e7f997852f46fb2757e545567fff0ee41cb5.tar.gz
Undo a mistaken change from splhigh to splvm. Subr_rlist has been
capable of being used for things other than swap space allocation, and splvm would have been appropriate for only swap space allocation and other VM things. My commit broke that (and was actually a mistake.)
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_rlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_rlist.c b/sys/kern/subr_rlist.c
index 4c3aba0..1ac27fb 100644
--- a/sys/kern/subr_rlist.c
+++ b/sys/kern/subr_rlist.c
@@ -54,7 +54,7 @@
* functioning of this software, nor does the author assume any responsibility
* for damages incurred with its use.
*
- * $Id: subr_rlist.c,v 1.17 1996/03/03 21:10:52 dyson Exp $
+ * $Id: subr_rlist.c,v 1.18 1996/10/12 21:35:25 dyson Exp $
*/
#include <sys/param.h>
@@ -83,7 +83,7 @@ rlist_malloc()
struct rlist *rl;
int i;
while( rlist_count < RLIST_MIN) {
- int s = splvm();
+ int s = splhigh();
rl = (struct rlist *)kmem_alloc(kernel_map, PAGE_SIZE);
splx(s);
if( !rl)
@@ -122,7 +122,7 @@ rlist_free(rlh, start, end)
struct rlist *prev_rlp = NULL, *cur_rlp = *rlp, *next_rlp = NULL;
int s;
- s = splvm();
+ s = splhigh();
while (rlh->rlh_lock & RLH_LOCKED) {
rlh->rlh_lock |= RLH_DESIRED;
tsleep(rlh, PSWP, "rlistf", 0);
@@ -241,7 +241,7 @@ rlist_alloc (rlh, size, loc)
int s;
register struct rlist *olp = 0;
- s = splvm();
+ s = splhigh();
while (rlh->rlh_lock & RLH_LOCKED) {
rlh->rlh_lock |= RLH_DESIRED;
tsleep(rlh, PSWP, "rlistf", 0);
OpenPOWER on IntegriCloud