mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 05:43:59 +00:00
The covered vnode must be reloced if it was unlocked. Remove VOP_ISLOCKED
test because of this and also because it can lead to false positives. Tested by: pho MFC after: 1 week
This commit is contained in:
parent
1c4edd12cd
commit
ffa43617e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226686
|
@ -119,7 +119,7 @@ nullfs_mount(struct mount *mp)
|
|||
/*
|
||||
* Re-lock vnode.
|
||||
*/
|
||||
if (isvnunlocked && !VOP_ISLOCKED(mp->mnt_vnodecovered))
|
||||
if (isvnunlocked)
|
||||
vn_lock(mp->mnt_vnodecovered, LK_EXCLUSIVE | LK_RETRY);
|
||||
|
||||
if (error)
|
||||
|
|
Loading…
Reference in a new issue