Re: linux-next: manual merge of the slab tree with the rcu tree
From: Miguel Ojeda
Date: Fri Jul 31 2026 - 16:53:24 EST
On Fri, Jul 31, 2026 at 10:07 PM Boqun Feng <boqun@xxxxxxxxxx> wrote:
>
> Cc Nathan & Bert because of:
>
> https://lore.kernel.org/rust-for-linux/20260731192522.GA1014697@ax162/
>
> I actually prefer Nathan's fix, since it's more explicit about the
> kvfree_rcu_head requirement. Alice & Miguel, thoughts?
I like having the right types as a general principle, but I guess it
depends on whether the maintainers prefer a solution closer in spirit
to the cast in the C macro and whether the plan is indeed to have
later more invasive changes / user-visible changes etc.
Another solution could be to have C helpers on the more public facing
API, but I assume there was a reason not to even before this change,
e.g. expensive.
Cheers,
Miguel