Re: [patch 1/2] mm: move oom_kill sysctls to their own file

From: Luis Chamberlain
Date: Fri Feb 18 2022 - 12:19:02 EST


On Thu, Feb 17, 2022 at 06:51:48PM -0800, Andrew Morton wrote:
> From: sujiaxun <sujiaxun@xxxxxxxxxxxxx>
> Subject: mm: move oom_kill sysctls to their own file
>
> kernel/sysctl.c is a kitchen sink where everyone leaves their dirty
> dishes, this makes it very difficult to maintain.
>
> To help with this maintenance let's start by moving sysctls to places
> where they actually belong. The proc sysctl maintainers do not want to
> know what sysctl knobs you wish to add for your own piece of code, we just
> care about the core logic.
>
> So move the oom_kill sysctls to their own file, mm/oom_kill.c
>
> [sfr@xxxxxxxxxxxxxxxx: null-terminate the array]
> Link: https://lkml.kernel.org/r/20220216193202.28838626@xxxxxxxxxxxxxxxx
> Link: https://lkml.kernel.org/r/20220215093203.31032-1-sujiaxun@xxxxxxxxxxxxx
> Signed-off-by: sujiaxun <sujiaxun@xxxxxxxxxxxxx>
> Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> Cc: Kees Cook <keescook@xxxxxxxxxxxx>
> Cc: Iurii Zaikin <yzaikin@xxxxxxxxxx>
> Cc: Michal Hocko <mhocko@xxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>

Queued on sysctl-next.

Luis