mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
- 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
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue