[PATCH RFC 0/2] rcu box container for Rust + maple tree load_rcu
Alice Ryhl
aliceryhl at google.com
Fri Jan 16 07:46:35 PST 2026
I'm sending this RFC to share an experiment I'm looking at. This may let
us replace the range allocator in Rust Binder with a maple tree.
An RcuBox is like a Box except that it lets you obtain a &T that
outlives the box by a grace period. It does not allow mutable access to
the inner value (Binder would probably use LockedBy for inner values).
Signed-off-by: Alice Ryhl <aliceryhl at google.com>
---
Alice Ryhl (2):
rust: rcu: add RcuBox type
rust: maple_tree: add load_rcu()
rust/bindings/bindings_helper.h | 1 +
rust/kernel/maple_tree.rs | 52 ++++++++++++++
rust/kernel/sync/rcu.rs | 31 ++++++++-
rust/kernel/sync/rcu/rcu_box.rs | 145 ++++++++++++++++++++++++++++++++++++++++
4 files changed, 228 insertions(+), 1 deletion(-)
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20260116-rcu-box-7a8e4c9f2180
Best regards,
--
Alice Ryhl <aliceryhl at google.com>
More information about the maple-tree
mailing list