Re: [PATCH v2] sched/cache: Remove the old cache group footprint on exec
From: Chen Yu
Date: Wed Oct 14 2026 - 23:21:17 EST
On Thu, Oct 15, 2026 at 01:25:52AM +0800, Jemmy Wong wrote:
[…]
> I agree a pure pointer-assignment helper should not touch the
> footprint. I now think it is better to change its responsibility:
> rename it to sched_cache_switch_grp(): have it subtract the
> task's contribution from the old group, publish the new pointer,
> and return the old group for the caller to put. This keeps the
> leave-group accounting and NUMA guard centralized.
>
Fair enough. I support this renaming proposal. Please feel free to
send a formal version.
thanks,
Chenyu