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:
parent
520acdaf69
commit
62e368b0b7
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user