Re: [PATCH 00/14] Stop lockdep_assert_held*() from assuming lock ownership
From: Bart Van Assche
Date: Wed Nov 11 2026 - 16:06:04 EST
On 11/11/26 11:14 AM, Marco Elver wrote:
The point was that the Coccinelle script could be used to add those
annotations tree-wide. We do not need to make the lockdep API worse,
if the legacy-code problem is solved another way.
Coccinelle is way too slow to be run every time the kernel is built
and hence is impractical for implementing compile-time checks. I'm
not claiming that what I'm proposing is ideal but the approach I'm
proposing ensures that all lock context checking happens at build time
and doesn't increase the build time noticeably.
Bart.