The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] locking/rwlock: Fix non-debug lock context annotations
@ 2026-12-04 21:58 Bart Van Assche
  2026-12-04 21:58 ` [PATCH 1/2] locking/rwlock: Pass rwlock to __acquire*() and __release*() Bart Van Assche
  2026-12-04 21:58 ` [PATCH 2/2] locking/rwlock: Report lock acquisition in non-debug do_raw_*_trylock() Bart Van Assche
  0 siblings, 2 replies; 3+ messages in thread
From: Bart Van Assche @ 2026-12-04 21:58 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: Ingo Molnar, Will Deacon, Boqun Feng, Waiman Long, linux-kernel,
	Marco Elver, Christoph Hellwig, Bart Van Assche

Hi Peter and Marco,

This patch series fixes two issues in the lock context annotations of
the !CONFIG_DEBUG_SPINLOCK definitions of the rwlock primitives in
<linux/rwlock.h>:
- do_raw_{read,write}_lock() and do_raw_{read,write}_unlock() pass the
  hardcoded identifier lock instead of the macro parameter rwlock to
  __acquire*() and __release*().
- do_raw_{read,write}_trylock() use __no_context_analysis instead of
  reporting lock acquisition explicitly, as do_raw_spin_trylock() does.

These patches have been build-tested with Clang 24 for x86_64 with
CONFIG_WARN_CONTEXT_ANALYSIS=y, both with and without CONFIG_PREEMPT_RT.

Please consider these patches for the next merge window.

Thank you,

Bart.

Bart Van Assche (2):
  locking/rwlock: Pass rwlock to __acquire*() and __release*()
  locking/rwlock: Report lock acquisition in non-debug
    do_raw_*_trylock()

 include/linux/rwlock.h | 24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-04 21:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 21:58 [PATCH 0/2] locking/rwlock: Fix non-debug lock context annotations Bart Van Assche
2026-12-04 21:58 ` [PATCH 1/2] locking/rwlock: Pass rwlock to __acquire*() and __release*() Bart Van Assche
2026-12-04 21:58 ` [PATCH 2/2] locking/rwlock: Report lock acquisition in non-debug do_raw_*_trylock() Bart Van Assche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox