diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2017-04-20 14:13:01 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2017-04-20 14:13:01 +0000 |
commit | a286e01bcdb694af72cc68023f8b8fe54cb7265b (patch) | |
tree | 700efd869ef7cca1e0b59b9a9310acbe988c288b /sys/kern/vfs_subr.c | |
parent | da85a125dd7fd9af53b0919887129daaf4fa53bb (diff) |
Tweak lock inits to make the system runnable with witness(4)
on amd64 and i386.
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 8cdeb565922..2a643bf36bb 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.258 2017/04/04 18:17:02 deraadt Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.259 2017/04/20 14:13:00 visa Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -172,7 +172,7 @@ vfs_busy(struct mount *mp, int flags) /* new mountpoints need their lock initialised */ if (mp->mnt_lock.rwl_name == NULL) - rw_init(&mp->mnt_lock, "vfslock"); + rw_init_flags(&mp->mnt_lock, "vfslock", RWL_IS_VNODE); if (flags & VB_WRITE) rwflags |= RW_WRITE; |