Author: jhb Date: Wed Mar 11 14:39:55 2009 New Revision: 189697 URL: http://svn.freebsd.org/changeset/base/189697
Log: 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 Modified: head/sys/kern/vfs_lookup.c Modified: head/sys/kern/vfs_lookup.c ============================================================================== --- head/sys/kern/vfs_lookup.c Wed Mar 11 14:13:47 2009 (r189696) +++ head/sys/kern/vfs_lookup.c Wed Mar 11 14:39:55 2009 (r189697) @@ -385,7 +385,7 @@ needs_exclusive_leaf(struct mount *mp, i * Lookup requests outside of open() that specify LOCKSHARED * only need a shared lock on the leaf vnode. */ - return (1); + return (0); } /* _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"