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
This commit is contained in:
jhb 2009-03-11 14:39:55 +00:00
parent 520acdaf69
commit 62e368b0b7

View File

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