freebsd-skq/sys/fs
mckusick 25230d4c6a Regularize the vop_stdlock'ing protocol across all the filesystems
that use it. Specifically, vop_stdlock uses the lock pointed to by
vp->v_vnlock. By default, getnewvnode sets up vp->v_vnlock to
reference vp->v_lock. Filesystems that wish to use the default
do not need to allocate a lock at the front of their node structure
(as some still did) or do a lockinit. They can simply start using
vn_lock/VOP_UNLOCK. Filesystems that wish to manage their own locks,
but still use the vop_stdlock functions (such as nullfs) can simply
replace vp->v_vnlock with a pointer to the lock that they wish to
have used for the vnode. Such filesystems are responsible for
setting the vp->v_vnlock back to the default in their vop_reclaim
routine (e.g., vp->v_vnlock = &vp->v_lock).

In theory, this set of changes cleans up the existing filesystem
lock interface and should have no function change to the existing
locking scheme.

Sponsored by:	DARPA & NAI Labs.
2002-10-14 03:20:36 +00:00
..
cd9660 Regularize the vop_stdlock'ing protocol across all the filesystems 2002-10-14 03:20:36 +00:00
coda Back our kernel support for reliable signal queues. 2002-10-01 17:15:53 +00:00
deadfs Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
devfs Change iov_base's type from char *' to the standard void *'. All 2002-10-11 14:58:34 +00:00
fdescfs Remove any VOP_PRINT that redundantly prints the tag. 2002-09-18 20:42:04 +00:00
fifofs Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
hpfs Regularize the vop_stdlock'ing protocol across all the filesystems 2002-10-14 03:20:36 +00:00
msdosfs Regularize the vop_stdlock'ing protocol across all the filesystems 2002-10-14 03:20:36 +00:00
ntfs Regularize the vop_stdlock'ing protocol across all the filesystems 2002-10-14 03:20:36 +00:00
nullfs Regularize the vop_stdlock'ing protocol across all the filesystems 2002-10-14 03:20:36 +00:00
nwfs Regularize the vop_stdlock'ing protocol across all the filesystems 2002-10-14 03:20:36 +00:00
portalfs Fix a warning on 64 bits platforms: copyinstr() takes 2002-10-06 11:45:22 +00:00
procfs Back our kernel support for reliable signal queues. 2002-10-01 17:15:53 +00:00
pseudofs Regularize the vop_stdlock'ing protocol across all the filesystems 2002-10-14 03:20:36 +00:00
smbfs Regularize the vop_stdlock'ing protocol across all the filesystems 2002-10-14 03:20:36 +00:00
specfs Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
udf Regularize the vop_stdlock'ing protocol across all the filesystems 2002-10-14 03:20:36 +00:00
umapfs Yet another 64 bits warning fix: s/u_int/size_t/. 2002-10-06 12:07:58 +00:00
unionfs Regularize the vop_stdlock'ing protocol across all the filesystems 2002-10-14 03:20:36 +00:00