From: David Vernet <void@manifault.com>
To: Tejun Heo <tj@kernel.org>
Cc: "Zhangqiao (2012 lab)" <zhangqiao22@huawei.com>,
linux-kernel@vger.kernel.org, kernel-team@meta.com
Subject: Re: [PATCH v2 sched_ext/for-6.12] sched_ext: Allow p->scx.disallow only while loading
Date: Thu, 1 Aug 2024 19:21:18 -0500 [thread overview]
Message-ID: <20240802002118.GB42857@maniforge> (raw)
In-Reply-To: <ZqwbK9m6ATnyYxHS@slm.duckdns.org>
[-- Attachment #1: Type: text/plain, Size: 1207 bytes --]
On Thu, Aug 01, 2024 at 01:32:59PM -1000, Tejun Heo wrote:
> From 1232da7eced620537a78f19c8cf3d4a3508e2419 Mon Sep 17 00:00:00 2001
> From: Tejun Heo <tj@kernel.org>
> Date: Wed, 31 Jul 2024 09:14:52 -1000
>
> p->scx.disallow provides a way for the BPF scheduler to reject certain tasks
> from attaching. It's currently allowed for both the load and fork paths;
> however, the latter doesn't actually work as p->sched_class is already set
> by the time scx_ops_init_task() is called during fork.
>
> This is a convenience feature which is mostly useful from the load path
> anyway. Allow it only from the load path.
>
> v2: Trigger scx_ops_error() iff @p->policy == SCHED_EXT to make it a bit
> easier for the BPF scheduler (David).
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Reported-by: "Zhangqiao (2012 lab)" <zhangqiao22@huawei.com>
> Link: http://lkml.kernel.org/r/20240711110720.1285-1-zhangqiao22@huawei.com
> Fixes: 7bb6f0810ecf ("sched_ext: Allow BPF schedulers to disallow specific tasks from joining SCHED_EXT")
> Signed-off-by: Tejun Heo <tj@kernel.org>
> ---
> David, how does this look?
Looks great, thanks.
Acked-by: David Vernet <void@manifault.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2024-08-02 0:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 11:07 [PATCH sched_ext/for-6.11] sched_ext: Reverting @p->sched_class if @p->disallow is set Zhangqiao (2012 lab)
2024-07-11 18:57 ` Tejun Heo
2024-07-16 11:32 ` Zhangqiao (2012 lab)
2024-07-16 20:48 ` Tejun Heo
2024-07-17 2:01 ` Zhangqiao (2012 lab)
2024-07-17 17:49 ` Tejun Heo
2024-07-18 6:04 ` Zhangqiao (2012 lab)
2024-07-31 19:14 ` [PATCH sched_ext/for-6.12] sched_ext: Allow p->scx.disallow only while loading Tejun Heo
2024-07-31 20:33 ` David Vernet
2024-08-01 23:32 ` [PATCH v2 " Tejun Heo
2024-08-02 0:21 ` David Vernet [this message]
2024-08-02 18:59 ` Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240802002118.GB42857@maniforge \
--to=void@manifault.com \
--cc=kernel-team@meta.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
--cc=zhangqiao22@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox