From 62e368b0b783fba912a4ed15f4860b744be90608 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 11 Mar 2009 14:39:55 +0000 Subject: [PATCH] Gah, fix the code to match the comment. For non-open lookups use a shared vnode lock for the leaf vnode if LOCKSHARED is set. Submitted by: rdivacky --- sys/kern/vfs_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index a21af4f10fbb..daecd6fec645 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -385,7 +385,7 @@ needs_exclusive_leaf(struct mount *mp, int flags) * Lookup requests outside of open() that specify LOCKSHARED * only need a shared lock on the leaf vnode. */ - return (1); + return (0); } /*