mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
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:
parent
10efe9a914
commit
86ed89620e
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue