Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Don't use a read lock on an intrsafe map; these map...
details: https://anonhg.NetBSD.org/src/rev/68a1cc7b90ef
branches: trunk
changeset: 473305:68a1cc7b90ef
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri May 28 19:40:09 1999 +0000
description:
Don't use a read lock on an intrsafe map; these maps can only use exclusive,
non-sleeping locks.
diffstat:
sys/kern/kern_malloc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 10e05e649828 -r 68a1cc7b90ef sys/kern/kern_malloc.c
--- a/sys/kern/kern_malloc.c Fri May 28 19:31:51 1999 +0000
+++ b/sys/kern/kern_malloc.c Fri May 28 19:40:09 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_malloc.c,v 1.42 1999/05/26 19:16:36 thorpej Exp $ */
+/* $NetBSD: kern_malloc.c,v 1.43 1999/05/28 19:40:09 thorpej Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -310,11 +310,11 @@
int rv;
vaddr_t addr = (vaddr_t)kbp->kb_next;
- vm_map_lock_read(kmem_map);
+ vm_map_lock(kmem_map);
rv = uvm_map_checkprot(kmem_map, addr,
addr + sizeof(struct freelist),
VM_PROT_WRITE);
- vm_map_unlock_read(kmem_map);
+ vm_map_unlock(kmem_map);
if (!rv)
{
Home |
Main Index |
Thread Index |
Old Index