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.