Re: [PATCH v6 12/12] x86/mm: Enable preemption during flush_tlb_kernel_range

From: Dave Hansen

Date: Thu Jun 04 2026 - 17:22:06 EST


On 5/28/26 08:13, Chuyi Zhou wrote:
> - info->initiating_cpu = smp_processor_id();
> + info->initiating_cpu = raw_smp_processor_id();
> info->trim_cpumask = 0;
> }

Doesn't this turn ->initiating_cpu into garbage? It doesn't mean
anything any more other than being a random record of the past.

I think it's just used for stats, so not the end of the world. But, the
warning is there for a *REASON*. Please don't just turn it off and
ignore the fallout.

I'm also just generally not sure this is worth it. Kernel TLB flushes
stink. This just makes them stink slightly less. Maybe imperceptibly so.

Is it worth the churn?