Re: [PATCH 00/14] Stop lockdep_assert_held*() from assuming lock ownership
From: Bart Van Assche
Date: Fri Nov 13 2026 - 16:42:39 EST
On 11/13/26 1:11 AM, Marco Elver wrote:
I think it's as simple as running the Coccinelle script, applying the
__must_hold* annotations that fall out of it globally, and we're done.
In a few months we can run it again and see what else has appeared,
but we should converge to 99% functions properly annotated and can
move on.
I will drop the locking API behavior changes.
Has it been considered to contribute your Coccinelle script to the
Linux kernel in directory scripts/coccinelle/? Some kernel developers
run these scripts periodically. This would make it more likely that
missing __must_hold() annotations on new kernel functions get added.
Thanks,
Bart.