NetBSD/sys/ufs/ext2fs
thorpej 11afd11faa Add a new VNODE_LOCKDEBUG option, which enables checks in the VOP_*()
calls to ensure that the vnode lock state is as expected when the VOP
call is made.  Modify vnode_if.src to set the expected state according
to the documenting lock table for each VOP.  Modify vnode_if.sh to emit
the checks.

Notes:
- The checks are only performed if the vnode has the VLOCKSWORK bit
  set.  Some file systems (e.g. specfs) don't even bother with vnode
  locks, so of course the checks will fail.
- We can't actually run with VNODE_LOCKDEBUG because there are so many
  vnode locking problems, not the least of which is the "use SHARED for
  VOP_READ()" issue, which screws things up for the entire call chain.

Inspired by similar changes in OpenBSD, but implemented differently.
2004-09-21 03:10:35 +00:00
..
ext2fs_alloc.c Fix disclaimer in my copyright. Pointed out by Thomas Klausner. 2004-03-22 19:23:08 +00:00
ext2fs_balloc.c Fix disclaimer in my copyright. Pointed out by Thomas Klausner. 2004-03-22 19:23:08 +00:00
ext2fs_bmap.c Fixing age old cruft: 2004-08-15 07:19:54 +00:00
ext2fs_bswap.c Remove references to University of California from my copyright notices. 2003-10-05 17:48:49 +00:00
ext2fs_dinode.h Fix disclaimer in my copyright. Pointed out by Thomas Klausner. 2004-03-22 19:23:08 +00:00
ext2fs_dir.h Fix disclaimer in my copyright. Pointed out by Thomas Klausner. 2004-03-22 19:23:08 +00:00
ext2fs_extern.h Tweak sysctl setup functions (the macros, actually) for use in lkms, 2004-05-20 06:34:24 +00:00
ext2fs_inode.c Fixing age old cruft: 2004-08-15 07:19:54 +00:00
ext2fs_lookup.c There's no need to pass a proc value when using UIO_SYSSPACE with 2004-09-17 14:11:20 +00:00
ext2fs_readwrite.c Fixing age old cruft: 2004-08-15 07:19:54 +00:00
ext2fs_subr.c Fix disclaimer in my copyright. Pointed out by Thomas Klausner. 2004-03-22 19:23:08 +00:00
ext2fs_vfsops.c Add a new VNODE_LOCKDEBUG option, which enables checks in the VOP_*() 2004-09-21 03:10:35 +00:00
ext2fs_vnops.c Add a new VNODE_LOCKDEBUG option, which enables checks in the VOP_*() 2004-09-21 03:10:35 +00:00
ext2fs.h Fix disclaimer in my copyright. Pointed out by Thomas Klausner. 2004-03-22 19:23:08 +00:00
Makefile