From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795938386; b=Sdd+EAa571bPw12/+KhV5HWGuE+nqKxZLwwsfivdG/LG9cQDZhRSd0lTwT/5StKv6vnT xfYEij6XK4eSeihSPVS8FutElTRwtW5xfO4quz3xMQfWIUwXTXqOoh+fHvZHRDQ8Ahx4G IlwpLXnuLLwe4kKXxda7erpwkVABU3B8cn0H5Hus+3PaHWVKRS5s7wDtDOvj6lPGP6sjt IVMlb3Wll9BixB9WqutJ3/kLgCrJ4WYgcbUUzLMmLkZL/Zyh5QYvdFumdZbrjbSrW9wL6 UqKZyxVzA6ulCbsUzT92m5Jw142Z68a6lA3Cf2m9O8wFXZU8TOgWI2IObsrGWkqiqog== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795938386; h=Received:DKIM-Signature:Date:Message-ID:From:To:Cc:Subject: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=n5LAm2bAHIPDqt/UDY6Edy4AHBN8hp99epU5Y5J4IgY=; b=uyDT7YO/J5FKK/AxTwmys+0aS1WwEdPZhWAP9zSyfj8tOkDOHwgPIqA7zltd1zhflvjS pUOo+B3LECVV+vPlgXwIL9BWaGK1ZESa+/Qi2jYjTQZK7UU4b/QFoBYats4XpLzrSkNch FluTV8Jj7uN6AkuHRDuCxMOaQnzhu1TE4EIkFAVPDPEnJUHBSWnmgZfiYnoY7xcB2JxIq xDO+D/EWKGGblFxIjzwaq2FBnyAKQDdw4dztFbnmts+LHfLYrnCjlLNthjyYf1d7TjOA7 x6W4wzLKOa4Hc+vgX9FNgFpNpvnpqlyj47s3yMnFh3n+HebJ4PntWIM/XcdMwzYHENQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=X1bbZFs6; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90209606A329; Sun, 29 Nov 2026 07:46:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=X1bbZFs6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 116411F000C1; Sun, 29 Nov 2026 07:46:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795938386; bh=n5LAm2bAHIPDqt/UDY6Edy4AHBN8hp99epU5Y5J4IgY=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=X1bbZFs6BUIM561J/xqKv0YHpAFubeog5SjhXSE3aNiVNGIDLE05wC5oqa8dVgcbB BRTEiW+RekGIDp5NUbZq+OVd5sZsK9oYCnsmGgcyNotRT222FlWCCt2AfPxcgfrWBu fjFT+DW1/JKvFOsdT5oNPfyV6CE/3mSOKhBHsW+96OOJCNLHySrtc0CM1UkJgU/zsA 6VfwXlKLDuCmAx03xRpDbkgj+htvH1pgzxNnTutZN7lq6v+NwaZX9e4subJ76pHCQy ibHPC4bC/h50l7+UKNK6iOnPciUj0XYJzvz/7IeycahSzPygu8PEvmclHZpTKhDS3Q /62ONnFISE0OQ== Date: Sat, 28 Nov 2026 21:46:25 -1000 Message-ID: <47778dd04d0aeaabaa610e4ca6158b83@kernel.org> From: Tejun Heo To: Andrea Righi Cc: Peter Zijlstra , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , John Stultz , David Vernet , Changwoo Min , Tao Cui , sched-ext@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] sched_ext: Make SCX_OPS_ENQ_BLOCKED a hierarchy-wide setting In-Reply-To: References: <20261126111649.208476-1-arighi@nvidia.com> <20261126111649.208476-3-arighi@nvidia.com> <0e09857f3adcb5a83711458cd7d1b6f9@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, Andrea. On Sat, Nov 28, 2026 at 05:39:33PM +0100, Andrea Righi wrote: > Right, a sub-sched setting SCX_OPS_ENQ_BLOCKED under a root that doesn't > is safe, it would just never see SCX_ENQ_BLOCKED. My concern is that > it'd be silent: a sub-sched that opts in and implements donor handling > would load fine and that code would never run, with no indication why. > > Maybe we can accept it and pr_warn() that the flag is ignored? I don't think we need the warning. On a sub-sched, the flag indicates that the sched supports blocked donors. Whether the feature is enabled is determined by the root, and I don't think that's all that confusing. The state can be exposed through sysfs too. Imagine how it'd work otherwise. A sched which supports proxy execution would have to query the root and then modify its struct_ops before loading, and I'm not sure what that buys when this is a simple global state. Thanks. -- tejun