kernel/panic: move panic sysctls to its own file
authortangmeng <tangmeng@uniontech.com>
Tue, 24 Jan 2023 18:50:52 +0000 (10:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:27:20 +0000 (08:27 +0100)
commit191f1f1f6a424f13597722ca65beb8341857785c
tree29c6f0615865ba7ffe06046f3d39b2e2c59032ce
parent654f6e851271d12423f4d6bdb14b71f213289828
kernel/panic: move panic sysctls to its own file

commit 9df918698408fd914493aba0b7858fef50eba63a upstream.

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 oops_all_cpu_backtrace sysctl to
its own file, kernel/panic.c.

Signed-off-by: tangmeng <tangmeng@uniontech.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/panic.h
kernel/panic.c
kernel/sysctl.c