From: Tejun Heo <tj@kernel.org>
To: Andrea Righi <arighi@nvidia.com>
Cc: David Vernet <void@manifault.com>,
Changwoo Min <changwoo@igalia.com>,
Emil Tsalapatis <emil@etsalapatis.com>,
sched-ext@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 sched_ext/for-6.19] sched_ext: Use ___v2 suffix for new kfuncs and fix scx build errors
Date: Wed, 22 Oct 2025 10:27:55 -1000 [thread overview]
Message-ID: <aPk-S_E82BD1YfSM@slm.duckdns.org> (raw)
In-Reply-To: <aPkyphtSDYDydnUm@gpd4>
Hello,
On Wed, Oct 22, 2025 at 09:38:14PM +0200, Andrea Righi wrote:
...
> Ahh ok, so user-space schedulers will always continue to pass all the
> arguments "normally" and we just assemble the args struct via an inline
> helper.
>
> So, IIUC, using an _argpack suffix or something similar (instead of ___v2)
> should be a reasonable solution, right?
Yeah, something with less than three underscores as that has a different
meaning (ignore when matching).
> > Here, there is no noticeable feature difference before and after for
> > existing schedulers, so I don't think it's necessary to introduce __COMPAT
> > prefix.
>
> The problem is that some schedulers (i.e., scx_bpfland, scx_cosmos) are
> explicitly checking bpf_ksym_exists(scx_bpf_select_cpu_and). If
> scx_bpf_select_cpu_and() becomes a static inline, we break the build and we
> also break binary compatibility. Hence the __COMPAT for the inline
> helpers...
Hmm... binary compatibility shouldn't break as the original
scx_bpf_select_cpu_and() is still there, right? Build breaks because now the
symbol is an inline one, but the solution there, I think, is either
providing a __COMPAT macro which helps testing the availability of
scx_bpf_select_cpu_and() or just making them test the ___compat symbol,
right? ie. kernel API changes aren't required to guarantee source level
backward compatibility (like how we did the dsq_insert renames) as long as
it provides a way to maintain both forward and backward binary
compatibility.
Thanks.
--
tejun
prev parent reply other threads:[~2025-10-22 20:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-22 9:38 [PATCH " Andrea Righi
2025-10-22 14:44 ` Emil Tsalapatis
2025-10-22 15:03 ` Andrea Righi
2025-10-22 15:36 ` [PATCH v2 " Andrea Righi
2025-10-22 16:34 ` Tejun Heo
2025-10-22 19:38 ` Andrea Righi
2025-10-22 20:27 ` Tejun Heo [this message]
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=aPk-S_E82BD1YfSM@slm.duckdns.org \
--to=tj@kernel.org \
--cc=arighi@nvidia.com \
--cc=changwoo@igalia.com \
--cc=emil@etsalapatis.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sched-ext@lists.linux.dev \
--cc=void@manifault.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
all inboxes | Powered by JetHome®