Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Really depend the lockdebug checks on option VNODE_...
details: https://anonhg.NetBSD.org/src/rev/66c381598caa
branches: trunk
changeset: 365922:66c381598caa
user: hannken <hannken%NetBSD.org@localhost>
date: Tue May 03 13:54:18 2022 +0000
description:
Really depend the lockdebug checks on option VNODE_LOCKDEBUG -- were
enabled by accident.
diffstat:
sys/kern/vnode_if.sh | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (47 lines):
diff -r fb97fcc3a2e2 -r 66c381598caa sys/kern/vnode_if.sh
--- a/sys/kern/vnode_if.sh Tue May 03 13:46:22 2022 +0000
+++ b/sys/kern/vnode_if.sh Tue May 03 13:54:18 2022 +0000
@@ -29,7 +29,7 @@
* SUCH DAMAGE.
*/
"
-SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.74 2022/05/03 08:33:59 hannken Exp $'
+SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.75 2022/05/03 13:54:18 hannken Exp $'
# Script to produce VFS front-end sugar.
#
@@ -610,28 +610,34 @@
static inline void
assert_vop_unlocked(vnode_t *vp, const char *str)
{
+#if defined(VNODE_LOCKDEBUG)
if (VOP_ISLOCKED(vp) == LK_EXCLUSIVE)
panic(\"%s: %p %d/%d is locked but should not be\",
str, vp, vp->v_tag, vp->v_type);
+#endif
}
static inline void
assert_vop_locked(vnode_t *vp, const char *str)
{
+#if defined(VNODE_LOCKDEBUG)
if (VOP_ISLOCKED(vp) == LK_NONE)
panic(\"%s: %p %d/%d is not locked but should be\",
str, vp, vp->v_tag, vp->v_type);
+#endif
}
static inline void
assert_vop_elocked(vnode_t *vp, const char *str)
{
+#if defined(VNODE_LOCKDEBUG)
if (VOP_ISLOCKED(vp) != LK_EXCLUSIVE)
panic(\"%s: %p %d/%d is not exclusive locked but should be\",
str, vp, vp->v_tag, vp->v_type);
+#endif
}
const struct vnodeop_desc vop_default_desc = {"
Home |
Main Index |
Thread Index |
Old Index