> 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 <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=7

