summaryrefslogtreecommitdiff
path: root/sys/vm/vm_glue.c
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2002-03-18 15:08:09 +0000
committerBrian Feldman <green@FreeBSD.org>2002-03-18 15:08:09 +0000
commit25adb370bec8a0768af7dffa365e319c2fac3f04 (patch)
tree03fcb7624947120aa4fef84d5f6a294e47e7965f /sys/vm/vm_glue.c
parent24fb82a7adfd98db11af2bc83eaaaba65b78984a (diff)
Notes
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r--sys/vm/vm_glue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index 75bd9b42f847..efbe38a1594e 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -560,7 +560,9 @@ retry:
* data structures there is a
* possible deadlock.
*/
- if (vm_map_try_lock(&vm->vm_map)) {
+ if (lockmgr(&vm->vm_map.lock,
+ LK_EXCLUSIVE | LK_NOWAIT,
+ NULL, curthread)) {
vmspace_free(vm);
PROC_UNLOCK(p);
goto nextproc;