From patchwork Fri May 15 04:33:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaoming Ni X-Patchwork-Id: 11550413 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 65BC3913 for ; Fri, 15 May 2020 04:33:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4E78C206F4 for ; Fri, 15 May 2020 04:33:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726198AbgEOEd4 (ORCPT ); Fri, 15 May 2020 00:33:56 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4845 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725616AbgEOEd4 (ORCPT ); Fri, 15 May 2020 00:33:56 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 212CB54EA7F1D3547B1B; Fri, 15 May 2020 12:33:53 +0800 (CST) Received: from use12-sp2.huawei.com (10.67.189.174) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Fri, 15 May 2020 12:33:47 +0800 From: Xiaoming Ni To: , , , , , , , , , , , , , , , , , CC: , , , Subject: [PATCH 0/4] Move the sysctl interface to the corresponding feature code file Date: Fri, 15 May 2020 12:33:40 +0800 Message-ID: <1589517224-123928-1-git-send-email-nixiaoming@huawei.com> X-Mailer: git-send-email 1.8.5.6 MIME-Version: 1.0 X-Originating-IP: [10.67.189.174] X-CFilter-Loop: Reflected Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Use register_sysctl() to register the sysctl interface to avoid merge conflicts when different features modify sysctl.c at the same time. Here, the sysctl interfaces of hung task and watchdog are moved to the corresponding feature code files https://lkml.org/lkml/2020/5/11/1419 Xiaoming Ni (4): hung_task: Move hung_task syscl interface to hung_task_sysctl.c proc/sysctl: add shared variables -1 watchdog: move watchdog sysctl to watchdog.c sysctl: Add register_sysctl_init() interface fs/proc/proc_sysctl.c | 2 +- include/linux/sched/sysctl.h | 8 +-- include/linux/sysctl.h | 3 + kernel/Makefile | 4 +- kernel/hung_task.c | 6 +- kernel/hung_task.h | 21 ++++++ kernel/hung_task_sysctl.c | 66 +++++++++++++++++ kernel/sysctl.c | 168 ++++++------------------------------------- kernel/watchdog.c | 101 ++++++++++++++++++++++++++ 9 files changed, 219 insertions(+), 160 deletions(-) create mode 100644 kernel/hung_task.h create mode 100644 kernel/hung_task_sysctl.c