Skip to content

Commit 82f586f

Browse files
author
Peter Zijlstra
committed
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: c8eaf6a ("sched: move autogroup sysctls into its own file") Reported-by: Ivan Kozik <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Ivan Kozik <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 7e28407 commit 82f586f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/autogroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ void __init autogroup_init(struct task_struct *init_task)
3636
kref_init(&autogroup_default.kref);
3737
init_rwsem(&autogroup_default.lock);
3838
init_task->signal->autogroup = &autogroup_default;
39+
sched_autogroup_sysctl_init();
3940
}
4041

4142
void autogroup_free(struct task_group *tg)
@@ -219,7 +220,6 @@ void sched_autogroup_exit(struct signal_struct *sig)
219220
static int __init setup_autogroup(char *str)
220221
{
221222
sysctl_sched_autogroup_enabled = 0;
222-
sched_autogroup_sysctl_init();
223223

224224
return 1;
225225
}

0 commit comments

Comments
 (0)