summaryrefslogtreecommitdiffstats
path: root/sys/ufs
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/ufs
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/ufs')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index aa9f19a..c099732 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1577,9 +1577,7 @@ ffs_vgetf(mp, ino, flags, vpp, ffs_flags)
*/
if (vp->v_type != VFIFO) {
/* FFS supports shared locking for all files except fifos. */
- VI_LOCK(vp);
VN_LOCK_ASHARE(vp);
- VI_UNLOCK(vp);
}
/*
OpenPOWER on IntegriCloud