summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2017-05-03 02:43:16 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2017-05-03 02:43:16 +0000
commita2f000d572a60ec005cd96713be3bf692f64c490 (patch)
treed4128a4c26baf925f9dbabfe6ebe2d72f4539d02 /sys
parent0a12c1f738e61dfea407c74207820ab752b15da9 (diff)
Mark uvm_sync_lock as vnode'ish for witness purposes, as it is taken
between mount locks and inode locks, which may been recorded in either order ok visa@
Diffstat (limited to 'sys')
-rw-r--r--sys/uvm/uvm_vnode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_vnode.c b/sys/uvm/uvm_vnode.c
index bf5664815a5..449e8796371 100644
--- a/sys/uvm/uvm_vnode.c
+++ b/sys/uvm/uvm_vnode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_vnode.c,v 1.95 2017/03/17 17:19:16 mpi Exp $ */
+/* $OpenBSD: uvm_vnode.c,v 1.96 2017/05/03 02:43:15 guenther Exp $ */
/* $NetBSD: uvm_vnode.c,v 1.36 2000/11/24 20:34:01 chs Exp $ */
/*
@@ -117,7 +117,7 @@ uvn_init(void)
LIST_INIT(&uvn_wlist);
/* note: uvn_sync_q init'd in uvm_vnp_sync() */
- rw_init(&uvn_sync_lock, "uvnsync");
+ rw_init_flags(&uvn_sync_lock, "uvnsync", RWL_IS_VNODE);
}
/*