Re: [PATCH] kernel/reboot: move reboot sysctls to its own file

From: Luis Chamberlain
Date: Thu Feb 17 2022 - 02:53:50 EST


On Thu, Feb 17, 2022 at 12:23:21PM +0800, tangmeng wrote:
> 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.
>
> All filesystem syctls now get reviewed by fs folks. This commit
> follows the commit of fs, move the poweroff_cmd and ctrl-alt-del
> sysctls to its own file, kernel/reboot.c.
>
> Signed-off-by: tangmeng <tangmeng@xxxxxxxxxxxxx>

Queued onto sysctl-next [0]. This tree is intended to queue up all of
the sysctl changes, get them tested.

[0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/log/?h=sysctl-next

Luis