]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
locking: Add lock context annotations in the spinlock implementation
authorBart Van Assche <bvanassche@acm.org>
Fri, 13 Mar 2026 17:15:09 +0000 (10:15 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 16 Mar 2026 12:16:50 +0000 (13:16 +0100)
commitb06e988c4c52ce8750616ea9b23c8bd3b611b931
tree23dd015a280e39f62f82d2012943f798e2d95a02
parentc4d3b8c77d85082d32250c505beb1d9e46ee47ee
locking: Add lock context annotations in the spinlock implementation

Make the spinlock implementation compatible with lock context analysis
(CONTEXT_ANALYSIS := 1) by adding lock context annotations to the
_raw_##op##_...() macros.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260313171510.230998-4-bvanassche@acm.org
kernel/locking/spinlock.c