svn commit: r189697 - head/sys/kern

John Baldwin jhb at FreeBSD.org
Wed Mar 11 07:39:56 PDT 2009


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);
 }
 
 /*


More information about the svn-src-head mailing list