]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
locking/rtmutex: Annotate API and implementation
authorBart Van Assche <bvanassche@acm.org>
Fri, 8 May 2026 17:45:16 +0000 (10:45 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 19 May 2026 11:49:01 +0000 (13:49 +0200)
commita9e4e50519e99e5be2d69fa4eebec6a4848ae201
tree21d8cf8b0ba6240774758bce8742f46b101ba089
parent03240f5de2dd312f388f3e493f194d54d43e2924
locking/rtmutex: Annotate API and implementation

Enable context analysis for struct rt_mutex and annotate all functions that
accept a struct rt_mutex pointer. In the __rt_mutex_lock_common() callers,
instead of adding the __no_context_analysis annotation, emit a runtime
warning if the __rt_mutex_lock_common() return value is not zero and add an
__acquire() statement.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260508174520.1416285-1-bvanassche@acm.org
include/linux/rtmutex.h
kernel/locking/rtmutex.c
kernel/locking/rtmutex_api.c