From dbbb8cc6608d8ab10a6d1ccf7264aaf0ca6fb9c9 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sun, 11 May 2003 01:47:01 +0000 Subject: use LK_EXCLUSIVE like all other file systems. use LK_RETRY in kernfs_root(). "just in case" stuff. --- sys/miscfs/kernfs/kernfs_vnops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/miscfs/kernfs/kernfs_vnops.c') diff --git a/sys/miscfs/kernfs/kernfs_vnops.c b/sys/miscfs/kernfs/kernfs_vnops.c index be1af6e7242..7aca9796eb8 100644 --- a/sys/miscfs/kernfs/kernfs_vnops.c +++ b/sys/miscfs/kernfs/kernfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kernfs_vnops.c,v 1.31 2003/04/07 23:37:05 tedu Exp $ */ +/* $OpenBSD: kernfs_vnops.c,v 1.32 2003/05/11 01:47:00 tedu Exp $ */ /* $NetBSD: kernfs_vnops.c,v 1.43 1996/03/16 23:52:47 christos Exp $ */ /* @@ -542,7 +542,7 @@ kernfs_lookup(v) return(error); } - vn_lock(*vpp, LK_SHARED | LK_RETRY, p); + vn_lock(*vpp, LK_EXCLUSIVE | LK_RETRY, p); if (wantpunlock) { VOP_UNLOCK(dvp, 0, p); -- cgit v1.2.3