Re: [PATCH 03/17] locking/rwsem: assert static storage for semaphore definitions

From: sashiko-bot

Date: Mon Sep 14 2026 - 23:31:31 EST


> The static rwsem initializers rely on persistent lockdep class keys,
> both for their own maps and for embedded locks or wait queues.
>
> Enforce static storage in DECLARE_RWSEM(), including PREEMPT_RT, and in
> __DEFINE_PERCPU_RWSEM(), covering both public per-CPU rwsem declarations.
> Automatic objects must use init_rwsem() or percpu_init_rwsem().
>
> Assisted-by: OpenAI Codex
> Signed-off-by: Yury Norov <ynorov@xxxxxxxxxx>

Sashiko has reviewed this patch and found no issues. It looks great!

--
Sashiko AI review · https://sashiko.dev/#/patchset/20260915030336.1192299-1-ynorov@xxxxxxxxxx?part=3