summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-03-31 05:23:20 +0000
committerjeff <jeff@FreeBSD.org>2005-03-31 05:23:20 +0000
commit322d56df72e5f8894b4abaa09f848a8fb93781d5 (patch)
treeeff36012f43e3bbe9f5ab974d6e88951c1b3d751 /sys/ufs
parente4d4b610ba46c67741445dba97004a3acf77973d (diff)
downloadFreeBSD-src-322d56df72e5f8894b4abaa09f848a8fb93781d5.zip
FreeBSD-src-322d56df72e5f8894b4abaa09f848a8fb93781d5.tar.gz
- FFS supports shared locks, clear LK_NOSHARE from our vnode locks.
Sponsored by: Isilon Systems, Inc.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 2a27502..7874aff 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1216,9 +1216,10 @@ ffs_vget(mp, ino, flags, vpp)
return (error);
}
/*
- * FFS supports recursive locking.
+ * FFS supports recursive and shared locking.
*/
vp->v_vnlock->lk_flags |= LK_CANRECURSE;
+ vp->v_vnlock->lk_flags &= ~LK_NOSHARE;
vp->v_data = ip;
vp->v_bufobj.bo_bsize = fs->fs_bsize;
ip->i_vnode = vp;
OpenPOWER on IntegriCloud