Re: [PATCH v2] sched/cache: honor migrate_llc_task semantics in active load balance

From: Tim Chen

Date: Mon Aug 10 2026 - 16:56:16 EST


On Sun, 2026-08-09 at 18:53 +0800, Lu Wang wrote:
> A passive load-balance pass marks group_llc_balance as migrate_llc_task
> and queues active balance when it cannot move a task. The CPU stopper
> callback constructs a fresh lb_env, so select the stopper callback when
> queueing active balance to preserve the migration semantics across the
> asynchronous boundary.
>
> For CAS-directed active balance, reject a candidate whose preferred LLC
> does not match the destination LLC. This keeps the fallback from moving
> a task away from its preferred LLC.

Thanks. This version looks good to me.

Reviewed-by: Tim Chen <tim.c.chen@xxxxxxxxxxxxxxx>

Tim

>
> Fixes: e4c9a4cb244a (\"sched/cache: Add migrate_llc_task migration type for cache-aware balancing\")
> Suggested-by: \"Chen, Yu C\" <yu.c.chen@xxxxxxxxx>
> Signed-off-by: Lu Wang <wanglu.priv@xxxxxxxxx>
> ---