Re: [PATCH 07/17] xarray: assert static storage for DEFINE_XARRAY_FLAGS()
From: sashiko-bot
Date: Mon Sep 14 2026 - 23:28:15 EST
> DEFINE_XARRAY_FLAGS() statically initializes xa_lock. For an automatic
> local XArray, lockdep cannot use the lock address as a persistent class
> key and disables itself when the lock is acquired.
>
> Add ASSERT_STATIC_STORAGE() to the common declaration macro, covering
> DEFINE_XARRAY(), DEFINE_XARRAY_ALLOC() and DEFINE_XARRAY_ALLOC1() as well.
> Convert the automatic XArray in the userspace iteration test to xa_init().
>
> 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=7