Re: [RFC PATCH bpf-next v4 1/4] sched: add helpers for numa balancing
From: Zi Yan
Date: Mon Nov 09 2026 - 22:41:01 EST
On Mon Nov 9, 2026 at 10:29 PM EST, Yafang Shao wrote:
> Introduce task_numab_enabled(), numab_in_normal_mode() and
> numab_in_tiering_mode() to replace the direct accesses to the
> sched_numa_balancing static key and the sysctl_numa_balancing_mode
> bitmask.
>
> No functional change.
>
> Signed-off-by: Yafang Shao <laoar.shao@xxxxxxxxx>
> Cc: David Hildenbrand (Arm) <david@xxxxxxxxxx>
> ---
> include/linux/sched/numa_balancing.h | 36 ++++++++++++++++++++++++++++
> kernel/sched/fair.c | 22 ++++++++---------
> kernel/sched/sched.h | 1 -
> mm/memory-tiers.c | 3 ++-
> mm/mempolicy.c | 3 +--
> mm/migrate.c | 7 +++---
> mm/vmscan.c | 6 ++---
> 7 files changed, 57 insertions(+), 21 deletions(-)
>
This looks like a nice cleanup and can be picked up separately.
Acked-by: Zi Yan <ziy@xxxxxxxxxx>
--
Best Regards,
Yan, Zi