[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <165390754900.4207.11439782656946256684.tip-bot2@tip-bot2>
Date: Mon, 30 May 2022 10:45:49 -0000
From: "tip-bot2 for Peter Zijlstra" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Ivan Kozik <ivan@...ios.org>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: sched/urgent] sched/autogroup: Fix sysctl move
The following commit has been merged into the sched/urgent branch of tip:
Commit-ID: 82f586f923e3ac6062bc7867717a7f8afc09e0ff
Gitweb: https://git.kernel.org/tip/82f586f923e3ac6062bc7867717a7f8afc09e0ff
Author: Peter Zijlstra <peterz@...radead.org>
AuthorDate: Mon, 30 May 2022 09:45:38 +02:00
Committer: Peter Zijlstra <peterz@...radead.org>
CommitterDate: Mon, 30 May 2022 12:36:36 +02:00
sched/autogroup: Fix sysctl move
Ivan reported /proc/sys/kernel/sched_autogroup_enabled went walk-about
and using the noautogroup command line parameter would result in a
boot error message.
Turns out the sysctl move placed the init function wrong.
Fixes: c8eaf6ac76f4 ("sched: move autogroup sysctls into its own file")
Reported-by: Ivan Kozik <ivan@...ios.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Tested-by: Ivan Kozik <ivan@...ios.org>
Link: https://lkml.kernel.org/r/YpR2IqndgsyMzN00@worktop.programming.kicks-ass.net
---
kernel/sched/autogroup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/autogroup.c b/kernel/sched/autogroup.c
index 16092b4..4ebaf97 100644
--- a/kernel/sched/autogroup.c
+++ b/kernel/sched/autogroup.c
@@ -36,6 +36,7 @@ void __init autogroup_init(struct task_struct *init_task)
kref_init(&autogroup_default.kref);
init_rwsem(&autogroup_default.lock);
init_task->signal->autogroup = &autogroup_default;
+ sched_autogroup_sysctl_init();
}
void autogroup_free(struct task_group *tg)
@@ -219,7 +220,6 @@ void sched_autogroup_exit(struct signal_struct *sig)
static int __init setup_autogroup(char *str)
{
sysctl_sched_autogroup_enabled = 0;
- sched_autogroup_sysctl_init();
return 1;
}
Powered by blists - more mailing lists