- 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
6ef6841ac5
commit
9b04831cbb
@ -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…
x
Reference in New Issue
Block a user