summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1998-02-08 14:55:13 +0000
committerdyson <dyson@FreeBSD.org>1998-02-08 14:55:13 +0000
commit8cf33a55bf8f168c6d4a13481161e8ab620df897 (patch)
treeb63fffcf6c294344c7aef2e553643e066d074678
parentd7aa12e045aeb99a7de516e8949736d3f79b4034 (diff)
downloadFreeBSD-src-8cf33a55bf8f168c6d4a13481161e8ab620df897.zip
FreeBSD-src-8cf33a55bf8f168c6d4a13481161e8ab620df897.tar.gz
Fix an argument to vn_lock. It appears that alot of the vn_lock usage
is a bit undisciplined, and should be checked carefully.
-rw-r--r--sys/vm/vm_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index b060fc7..f0941df 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_map.c,v 1.111 1998/02/05 03:32:41 dyson Exp $
+ * $Id: vm_map.c,v 1.112 1998/02/06 12:14:24 eivind Exp $
*/
/*
@@ -1667,7 +1667,7 @@ vm_map_clean(map, start, end, syncio, invalidate)
*/
if (current->protection & VM_PROT_WRITE) {
if (object->type == OBJT_VNODE)
- vn_lock(object->handle, LK_EXCLUSIVE, curproc);
+ vn_lock(object->handle, LK_EXCLUSIVE|LK_RETRY, curproc);
vm_object_page_clean(object,
OFF_TO_IDX(offset),
OFF_TO_IDX(offset + size + PAGE_MASK),
OpenPOWER on IntegriCloud