diff options
author | kib <kib@FreeBSD.org> | 2011-10-24 13:48:13 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-10-24 13:48:13 +0000 |
commit | 7950dabcc02032cfcac6897c547a4b5321995a2a (patch) | |
tree | e69755da065c584c80ae0ca7d964fe935afd0dfe /sys/fs/nullfs | |
parent | d468939fabab714a08d5daa929a6e622d07ec292 (diff) | |
download | FreeBSD-src-7950dabcc02032cfcac6897c547a4b5321995a2a.zip FreeBSD-src-7950dabcc02032cfcac6897c547a4b5321995a2a.tar.gz |
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
Diffstat (limited to 'sys/fs/nullfs')
-rw-r--r-- | sys/fs/nullfs/null_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c index 97f8f13..7eaffe5 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -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) |