summaryrefslogtreecommitdiffstats
path: root/sys/fs/nullfs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-10-24 13:48:13 +0000
committerkib <kib@FreeBSD.org>2011-10-24 13:48:13 +0000
commit7950dabcc02032cfcac6897c547a4b5321995a2a (patch)
treee69755da065c584c80ae0ca7d964fe935afd0dfe /sys/fs/nullfs
parentd468939fabab714a08d5daa929a6e622d07ec292 (diff)
downloadFreeBSD-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.c2
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)
OpenPOWER on IntegriCloud