OpenBSD cvs log

created 2021-10-24T09:53:41Z
begin 2021-10-19T00:00:00Z
end 2021-10-20T00:00:00Z
path src/sys
commits 4

date 2021-10-19T06:09:39Z
author semarie
files src/sys/miscfs/deadfs/dead_vnops.c log diff annotate
message vnode: deadfs: do not call v_op->vop_lock directly, use VOP_LOCK() wrapper

ok mpi@ visa@ (as part of larger diff)

date 2021-10-19T06:11:45Z
author semarie
files src/sys/isofs/cd9660/cd9660_node.c log diff annotate
src/sys/nfs/nfs_node.c log diff annotate
src/sys/ufs/ufs/ufs_ihash.c log diff annotate
message vnode: do not manipulate vnode lock directly

use VOP_LOCK / VOP_UNLOCK wrappers.

VOP_LOCK() is prefered over vn_lock() here in order to keep equivalent code.

ok mpi@ visa@ (as part of larger diff)

date 2021-10-19T06:26:08Z
author semarie
files src/sys/kern/vfs_subr.c log diff annotate
message vnode: remove VLOCKSWORK and check locking when vop_islocked != nullop

This flag is currently used to mark or unmark a vnode to actively
check vnode locking semantic (when compiled with VFSLCKDEBUG).

Currently, VLOCKSWORK flag isn't properly set for several FS
implementation which have full locking support. This commit enable
proper checking for them too (cd9660, udf, fuse, msdosfs, tmpfs).

Instead of using a particular flag, it directly check if
v_op->vop_islocked is nullop or not to activate or not the vnode
locking checks.

ok mpi@

date 2021-10-19T06:26:09Z
author semarie
files src/sys/kern/vfs_vops.c log diff annotate
src/sys/nfs/nfs_node.c log diff annotate
src/sys/sys/vnode.h log diff annotate
src/sys/ufs/ext2fs/ext2fs_subr.c log diff annotate
src/sys/ufs/ffs/ffs_subr.c log diff annotate
src/sys/ufs/ffs/ffs_vfsops.c log diff annotate
src/sys/uvm/uvm_vnode.c log diff annotate
message vnode: remove VLOCKSWORK and check locking when vop_islocked != nullop

This flag is currently used to mark or unmark a vnode to actively
check vnode locking semantic (when compiled with VFSLCKDEBUG).

Currently, VLOCKSWORK flag isn't properly set for several FS
implementation which have full locking support. This commit enable
proper checking for them too (cd9660, udf, fuse, msdosfs, tmpfs).

Instead of using a particular flag, it directly check if
v_op->vop_islocked is nullop or not to activate or not the vnode
locking checks.

ok mpi@