Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4522212ioo; Tue, 31 May 2022 06:21:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXjI0dGEmxVD0l0FF57pJVryciKOgnlle+Jgr/Gq0RiCiNf9hi3Ia5rqJe6GaIYoQzJsyh X-Received: by 2002:a50:a68e:0:b0:42a:c9ae:469 with SMTP id e14-20020a50a68e000000b0042ac9ae0469mr63376022edc.202.1654003303560; Tue, 31 May 2022 06:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654003303; cv=none; d=google.com; s=arc-20160816; b=FvSIgITsH3C4c7eZPmd9XnSdy4Zj5W7nZmdhds0VhFZkmZ26AzcxKbl/DIB8vseJ/i cf1h+NH05vHi106tkK3dHwtyEiBiTrcpjXx30D9t/exzKNVgEUzeQOgNMSWKw8gSno3G AfPdrtLTAeLrIgiAySmpPlHuHbG2//9rV+Hx44kwgaWpNSsUazdf+L2vpGvGz8hKvUmi jAIm/VTE3If8QLM5IbOEUiPWf0uHFjrbBN10dbC2EJqbWdBU5N9dzFX7DSttBWI39+Q4 4cjdW/94aZGylOqhzdjtSHjKyqTo11LjF++dFXyHDBNyJ7B98vMMIcQjLs7Flnu+547R Op3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zPMYFl+F6N/pp7h3JSIEvf+AEouWokHfixPufYFbcX4=; b=UkQ53kunjhPD9qAR6BAVde1atRyDqiSN69FjYXNxZAimBpwqOnKnrQ3URWclp9pq1n SR0dMg1XxdSa37ycRe1mEqAxUByPQGRxinlppawok5guHU1BiNxyzZArGpUcNJ8Ztl+C wo6h3EqzhdbXugO3ZYEl6y0kXahhHZUGYYItzyEukegoSzVZ3n2OIe4OBy8nFD1ea1Gn rFZ+q3oJKQmum7vKM/2d5uY3lrSso/MsK9MZJo9otYI4kdiYaMYe9juJxoWO4nDz22pr BbEXPZTWs2Xp90wnJeJh9HmpqgRZjBADyxVKPnkt/vCbxaWy2XV5itFIM7omEPNFDkUf S22A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=hxWYFgZK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho16-20020a1709070e9000b006fef0597a5asi3657144ejc.1008.2022.05.31.06.21.17; Tue, 31 May 2022 06:21:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=hxWYFgZK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233851AbiE3HqA (ORCPT + 99 others); Mon, 30 May 2022 03:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233801AbiE3Hp6 (ORCPT ); Mon, 30 May 2022 03:45:58 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F213E25EAF for ; Mon, 30 May 2022 00:45:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=zPMYFl+F6N/pp7h3JSIEvf+AEouWokHfixPufYFbcX4=; b=hxWYFgZKi5QZHfJo6T/VLFTWzy Z73fL1E4gXQ5GSua8vWYUjBKva+8KdWbUFEHekXdoygWLS/+8+Rk4+LrCy8FEuW0BTOejelQyHjzM eIxholpZckPtDJqbCjdLyG1ant1E1khVZDFYqeLpvl9FZnZ/G73XvLo8/javFfJY0oIgjuNXFK5G8 UTx0LTKvQgwjipo+RHrR1nIqE/m8RfLzUyuPFFTa+De04luv0biPtTf0yMqzjIpKZIAHGIoHXmvsZ DE4HqYpBNXYG+1UbpqHnpyZcuEG/YtEK0ycA7cQ4gXIB0FOVEeve5Z3x6vFYBHdF1/f7d6wOskqJR KlnSNoLQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nva5s-002yVF-E3; Mon, 30 May 2022 07:45:41 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 2EF0F980DE7; Mon, 30 May 2022 09:45:38 +0200 (CEST) Date: Mon, 30 May 2022 09:45:38 +0200 From: Peter Zijlstra To: Ivan Kozik Cc: linux-kernel@vger.kernel.org, nizhen@uniontech.com, mingo@kernel.org Subject: Re: 5.18 missing /proc/sys/kernel/sched_autogroup_enabled? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 29, 2022 at 11:52:42PM +0000, Ivan Kozik wrote: > Hello, > > I noticed that /proc/sys/kernel/sched_autogroup_enabled seems to have > gone missing in 5.18. Am I doing something wrong, or is this a > regression? > > I also noticed that booting 5.18 with "noautogroup" results in a > "kernel: failed when register_sysctl sched_autogroup_sysctls to > kernel" message. Because of the error and the missing > /proc/sys/kernel/sched_autogroup_enabled, it is unclear whether > autogroup is enabled or not. *sigh*, I think this is yet another one of the sysctl move patches gone bad :/ Specifically: c8eaf6ac76f4 ("sched: move autogroup sysctls into its own file") Does something like the below help? --- diff --git a/kernel/sched/autogroup.c b/kernel/sched/autogroup.c index 16092b49ff6a..4ebaf97f7bd8 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; }