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
This commit is contained in:
Stefan Eßer 2003-06-20 12:15:37 +00:00
parent 10efe9a914
commit 86ed89620e

View file

@ -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