- FFS supports shared locks, clear LK_NOSHARE from our vnode locks.

Sponsored by:	Isilon Systems, Inc.
This commit is contained in:
jeff 2005-03-31 05:23:20 +00:00
parent e4d4b610ba
commit 322d56df72

View File

@ -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;