diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-01-10 21:19:51 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-01-10 21:19:51 +0000 |
commit | ba045feb7a947af952004ac251329641cb6c8527 (patch) | |
tree | 71cd21c4ff7e492ba5b9fd7b5b60a1b3514426d8 /sys/vm/vm_map.c | |
parent | 4d70f72cd3a27a14bff429292e9a5b2932e76d12 (diff) |
vm_map_deallocate: only release the simple lock when ref_count > 0. in the other case the simple lock is released in vm_map_lock_drain_*interlock*
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r-- | sys/vm/vm_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index f606ca0cd4b..4bf81216712 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_map.c,v 1.16 1999/01/09 02:01:10 niklas Exp $ */ +/* $OpenBSD: vm_map.c,v 1.17 1999/01/10 21:19:50 art Exp $ */ /* $NetBSD: vm_map.c,v 1.23 1996/02/10 00:08:08 christos Exp $ */ /* @@ -477,9 +477,9 @@ vm_map_deallocate(map) simple_lock(&map->ref_lock); c = --map->ref_count; - simple_unlock(&map->ref_lock); if (c > 0) { + simple_unlock(&map->ref_lock); return; } |