- Clear LOCKSHARED if LOOKUP_SHARED is not enabled. This is not strictly
necessary since we disable the shared locks in vfs_cache, but it is prefered that the option not leak out into filesystems when it is disabled. Sponsored by: Isilon Systems, Inc.
This commit is contained in:
parent
fdd6a3ff3c
commit
ad09e57f41
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144048
@ -117,6 +117,9 @@ namei(ndp)
|
||||
("namei: nameiop contaminated with flags"));
|
||||
KASSERT((cnp->cn_flags & OPMASK) == 0,
|
||||
("namei: flags contaminated with nameiops"));
|
||||
#ifndef LOOKUP_SHARED
|
||||
cnp->cn_flags &= ~LOCKSHARED;
|
||||
#endif
|
||||
fdp = p->p_fd;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user