summaryrefslogtreecommitdiffstats
path: root/sys/fs/udf
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-07-16 19:52:03 +0000
committerjhb <jhb@FreeBSD.org>2010-07-16 19:52:03 +0000
commit7f218ea7f4311ac365547a39526a95ad6d6f48b2 (patch)
tree3e73fc2d4f9389fa4e442d9702563d6a8f95189f /sys/fs/udf
parentea417bf09acdf5d9f44a16d4325b3b99dda501e3 (diff)
downloadFreeBSD-src-7f218ea7f4311ac365547a39526a95ad6d6f48b2.zip
FreeBSD-src-7f218ea7f4311ac365547a39526a95ad6d6f48b2.tar.gz
Revert the previous commit. The race is not applicable to the lockmgr
implementation in 8.0 and later as its flags field does not hold dynamic state such as waiters flags, but is only modified in lockinit() aside from VN_LOCK_*(). Discussed with: attilio
Diffstat (limited to 'sys/fs/udf')
-rw-r--r--sys/fs/udf/udf_vfsops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/fs/udf/udf_vfsops.c b/sys/fs/udf/udf_vfsops.c
index af41043..7be5384 100644
--- a/sys/fs/udf/udf_vfsops.c
+++ b/sys/fs/udf/udf_vfsops.c
@@ -710,11 +710,8 @@ udf_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp)
break;
}
- if (vp->v_type != VFIFO) {
- VI_LOCK(vp);
+ if (vp->v_type != VFIFO)
VN_LOCK_ASHARE(vp);
- VI_UNLOCK(vp);
- }
if (ino == udf_getid(&udfmp->root_icb))
vp->v_vflag |= VV_ROOT;
OpenPOWER on IntegriCloud