Re: [patch 1/4] sched/mmcid: Prevent live lock on task to CPU mode transition

From: Thomas Gleixner

Date: Fri Jan 30 2026 - 11:17:14 EST


On Fri, Jan 30 2026 at 10:24, Mathieu Desnoyers wrote:
> On 2026-01-29 16:20, Thomas Gleixner wrote:
>> if (percpu) {
>> mm_cid_fixup_tasks_to_cpus();
>> + /* Clear the transition bit */
>> + WRITE_ONCE(mm->mm_cid.transit, 0);
>
> You should move this WRITE_ONCE at the end of
> mm_cid_fixup_tasks_to_cpus() to keep the same pattern as for
> mm_cid_fixup_cpus_to_tasks().

I fixed that up in the wrong patch. Will fold it back into that one.