Re: [PATCH v1 11/14] futex: Implement FUTEX2_NUMA

From: Christoph Lameter (Ampere)
Date: Wed Jun 12 2024 - 13:09:36 EST


On Mon, 31 Jul 2023, Peter Zijlstra wrote:

Is nr_node_ids guaranteed to be stable after init? It's marked
__read_mostly, but not __ro_after_init.

AFAICT it is only ever written to in setup_nr_node_ids() and that is all
__init code. So I'm thinking this could/should indeed be
__ro_after_init. Esp. so since it is an exported variable.

Mike?

Its stable and lots of other components depend on it like f.e. the size of cpumasks.