The patch titled Subject: mm/mempolicy: failed to disable numa balancing has been added to the -mm mm-unstable branch. Its filename is mm-mempolicy-failed-to-disable-numa-balancing.patch
This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches...
This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days
------------------------------------------------------ From: tzm tcm1030@163.com Subject: mm/mempolicy: failed to disable numa balancing Date: Fri, 2 Dec 2022 22:16:30 +0800
The kernel fails to disable numa balancing policy permanently when the user passes <numa_balancing=disable> to the boot cmdline parameters. The numabalancing_override variable is 1 for enable -1 for disable. So, !numabalancing_override will always be true, which causes this bug.
Link: https://lkml.kernel.org/r/20221202141630.41220-1-tcm1030@163.com Signed-off-by: tzm tcm1030@163.com Cc: Mel Gorman mgorman@techsingularity.net Cc: stable@vger.kernel.org Signed-off-by: Andrew Morton akpm@linux-foundation.org ---
mm/mempolicy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/mempolicy.c~mm-mempolicy-failed-to-disable-numa-balancing +++ a/mm/mempolicy.c @@ -2865,7 +2865,7 @@ static void __init check_numabalancing_e if (numabalancing_override) set_numabalancing_state(numabalancing_override == 1);
- if (num_online_nodes() > 1 && !numabalancing_override) { + if (num_online_nodes() > 1 && (numabalancing_override == 1)) { pr_info("%s automatic NUMA balancing. Configure with numa_balancing= or the kernel.numa_balancing sysctl\n", numabalancing_default ? "Enabling" : "Disabling"); set_numabalancing_state(numabalancing_default); _
Patches currently in -mm which might be from tcm1030@163.com are
mm-mempolicy-failed-to-disable-numa-balancing.patch
linux-stable-mirror@lists.linaro.org