diff options
author | Zhenlei Huang <zlei@FreeBSD.org> | 2025-09-17 16:48:54 +0000 |
---|---|---|
committer | Zhenlei Huang <zlei@FreeBSD.org> | 2025-09-17 16:48:54 +0000 |
commit | 2d85bc89294baa04daf509e81ec3880bff79cc10 (patch) | |
tree | 4b0f57a73ee42864d394c955e5959261f8f17f16 /sys/modules | |
parent | 08d41d8803d9dd49b709518e8f2ce292b59e9828 (diff) |
and the last acquired file and line to witness object.
For recursable locks, unfortunately current implementation records only
the recurse count and the last acquired file and line, but does not
restore the previous acquired file and line on unlock. Hence it is
possible to report false acquired file and line, and that may mislead
developers and make the report by users a little harder to analyse.
Since subsequent recurse locks do not affect how witness order check,
record the first acquired file and line so that the logic is much clear.
Reported by: bz
Reviewed by: kib (previous version), markj
See also: https://lists.freebsd.org/archives/freebsd-current/2025-June/007944.html
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D52496
Diffstat (limited to 'sys/modules')
0 files changed, 0 insertions, 0 deletions