Re: [RFC PATCH 00/11] Add a percpu subsection for hot data
From: Linus Torvalds
Date: Sun Feb 23 2025 - 13:00:32 EST
On Sun, 23 Feb 2025 at 01:37, Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
> This can also be a drawback if it's abused by random driver code - so I
> think it should at minimum be documented to be used by core & arch
> code. Maybe add a build #error too if it's defined in modular code?
Yes, please.
Everybody always thinks that *their* code is the most important code,
so making it easy for random filesystems or drivers to just say "this
is my hot piece of data" needs to be avoided.
That is also an argument for having the final size be asserted to be
smaller than one cacheline.
Because I do think that the patches look fine, but it's too much of an
invitation for random developers to go "Oh, *MY* code deserves a hot
marker".
Linus