Re: [patch V3 19/20] sched/mmcid: Implement deferred mode change

Mathieu Desnoyers
2025-10-30T15:56:58Z

On 2025-10-29 09:09, Thomas Gleixner wrote:
> When affinity changes cause an increase of the number of CPUs allowed for
> tasks which are related to a MM, that might results in a situation where
> the ownership mode can go back from per CPU mode to per task mode.
>
> As affinity changes happen with runqueue lock held there is no way to do
> the actual mode change and required fixup right there.
>
> Add the infrastructure to defer it to a workqueue. The scheduled work can
> race with a fork() or exit(). Whatever happens first takes care of it.

Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

--
Mathieu Desnoyers
EfficiOS Inc.