Re: [PATCH v6 00/12] rust: xarray: add entry API with preloading
From: Andreas Hindborg
Date: Thu Nov 26 2026 - 02:52:18 EST
Philipp Stanner <phasta@xxxxxxxxxxx> writes:
> On Fri, 2026-11-20 at 14:10 +0100, Andreas Hindborg wrote:
>> - Patches 8-9 add support for sheaf-based object caches.
>>
>> - Patch 10 enables sheaf support for the xarray kmem_cache.
>>
>> - Patch 11 adds preloading to the new entry API.
>
> Sorry for my ignorance, I was out of the loop here. What's actually the
> purpose of this series? What's your user, and what is it going to do?
As by the cover letter
The feature additions in this series are dependencies for the rust null
block driver, most of which is still downstream.
Specifically, we are inserting to into the XArray while holding a
`SpinLock` [1]. If the path of the inserted key has not yet been
allocated, the XArray must acquire some memory to build the path.
Best regards,
Andreas Hindborg
[1] https://github.com/metaspace/linux/blob/9c0fceca4feed5f1056f55abe9c7c70731402776/drivers/block/rnull/disk_storage.rs#L185