Re: [PATCH 09/17] radix-tree: require static storage for RADIX_TREE()
From: sashiko-bot
Date: Mon Sep 14 2026 - 23:29:45 EST
> RADIX_TREE() uses the static XArray initializer. Enforce static storage
> for this declaration wrapper, consistently with DEFINE_XARRAY_FLAGS()
> and DEFINE_IDR(). Leave RADIX_TREE_INIT() unchanged for embedded objects.
>
> Normal radix-tree operations use external synchronization rather than the
> embedded XArray lock, so this is declaration-contract enforcement rather
> than a fix for a lockdep failure in normal radix-tree operations.
>
> Convert the thirteen automatic roots in the userspace tests and benchmark
> to plain declarations followed by INIT_RADIX_TREE(), preserving their
> allocation flags.
>
> 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=9