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:
Konstantin Belousov 2011-10-24 13:48:13 +00:00
parent 1c4edd12cd
commit ffa43617e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226686

View file

@ -119,7 +119,7 @@ nullfs_mount(struct mount *mp)
/* /*
* Re-lock vnode. * Re-lock vnode.
*/ */
if (isvnunlocked && !VOP_ISLOCKED(mp->mnt_vnodecovered)) if (isvnunlocked)
vn_lock(mp->mnt_vnodecovered, LK_EXCLUSIVE | LK_RETRY); vn_lock(mp->mnt_vnodecovered, LK_EXCLUSIVE | LK_RETRY);
if (error) if (error)