Date: Wed, 11 Mar 2009 14:39:55 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r189697 - head/sys/kern Message-ID: <200903111439.n2BEdtCB098370@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903111439.n2BEdtCB098370>