diff options
author | peter <peter@FreeBSD.org> | 2004-03-29 22:41:21 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-03-29 22:41:21 +0000 |
commit | 1f224a3d83fa0f8d991bac65f30316ddd5becc12 (patch) | |
tree | 9ae8206254c3dd899dbfd13744073cb3aef5f1aa /sys/fs | |
parent | 8e41c82b83a283bd515274944d549ab23a03dc94 (diff) | |
download | FreeBSD-src-1f224a3d83fa0f8d991bac65f30316ddd5becc12.zip FreeBSD-src-1f224a3d83fa0f8d991bac65f30316ddd5becc12.tar.gz |
Clean up the stub fake vnode locking implemenations. The main reason this
stuff was here (NFS) was fixed by Alfred in November. The only remaining
consumer of the stub functions was umapfs, which is horribly horribly
broken. It has missed out on about the last 5 years worth of maintenence
that was done on nullfs (from which umapfs is derived). It needs major
work to bring it up to date with the vnode locking protocol. umapfs really
needs to find a caretaker to bring it into the 21st century.
Functions GC'ed:
vop_noislocked, vop_nolock, vop_nounlock, vop_sharedlock.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/umapfs/umap_vnops.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/fs/umapfs/umap_vnops.c b/sys/fs/umapfs/umap_vnops.c index 6a6dc08..c57147a 100644 --- a/sys/fs/umapfs/umap_vnops.c +++ b/sys/fs/umapfs/umap_vnops.c @@ -363,6 +363,15 @@ umap_lock(ap) } */ *ap; { + /* + * vop_nolock no longer exists. I could have pasted the code + * in so that it compiles, but that would be doing our users a + * great disservice. umapfs is about 5 years behind the nullfs + * code that it is derived from. The stub locking here guarantees + * a deadlock the moment a VOP_INACTIVE arrives. There is no point + * pasting the code that makes it compile either, because that just + * makes it Even More Wrong. + */ vop_nolock(ap); if ((ap->a_flags & LK_TYPE_MASK) == LK_DRAIN) return (0); |