From 995f0686641cf4b40d4af12d7e380b66e46cb86a Mon Sep 17 00:00:00 2001 From: se Date: Fri, 20 Jun 2003 12:15:37 +0000 Subject: The assertions generated to test VFS locking never included checks for vnodes reached through double indirection (i.e. **vpp). This is worked-around by special-casing the identifier "vpp" (adding one level of indirection). The alternative fix mentioned in the PR had required substantial changes to this script. In case there are locking violations that had been hidden without this patch, they may suddenly show up, now ... This change does not affect code compiled without DEBUG_VFS_LOCKS. PR: kern/46652 --- sys/tools/vnode_if.awk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk index 69bb0bf..443a321 100644 --- a/sys/tools/vnode_if.awk +++ b/sys/tools/vnode_if.awk @@ -65,6 +65,8 @@ function printh(s) {print s > hfile;} function add_debug_code(name, arg, pos) { + if (arg == "vpp") + arg = "*vpp"; if (lockdata[name, arg, pos]) { printh("\tASSERT_VI_UNLOCKED("arg", \""uname"\");"); # Add assertions for locking -- cgit v1.1