diff options
author | Alan Cox <alc@FreeBSD.org> | 2002-04-28 06:07:54 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2002-04-28 06:07:54 +0000 |
commit | d974f03c6960553b7f20f643a3c81d8ed9a3c9bc (patch) | |
tree | cfed2f78df18ec91b4eea400ce4de416ed94a583 /sys/vm/vm_glue.c | |
parent | 67a2a28fe4d538923a18aab45d2dc8581dee9dca (diff) | |
download | src-d974f03c6960553b7f20f643a3c81d8ed9a3c9bc.tar.gz src-d974f03c6960553b7f20f643a3c81d8ed9a3c9bc.zip |
o Introduce and use vm_map_trylock() to replace several direct uses
of lockmgr().
o Add missing synchronization to vmspace_swap_count(): Obtain a read lock
on the vm_map before traversing it.
Notes
Notes:
svn path=/head/; revision=95610
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 2adbb4ad8325..66eaa6bbf79f 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -560,9 +560,7 @@ retry: * data structures there is a * possible deadlock. */ - if (lockmgr(&vm->vm_map.lock, - LK_EXCLUSIVE | LK_NOWAIT, - NULL, curthread)) { + if (!vm_map_trylock(&vm->vm_map)) { vmspace_free(vm); PROC_UNLOCK(p); goto nextproc; |