Re: [PATCH v4 2/6] sched: Move DL's admission control to sysfs
From: Sebastian Andrzej Siewior
Date: Tue Nov 24 2026 - 09:12:13 EST
On 2026-11-24 12:04:24 [+0100], Juri Lelli wrote:
> On 24/11/26 11:35, Sebastian Andrzej Siewior wrote:
> ...
>
> > We could also make the proc interface return -EINVAL on read/ write once
> > the sysfs was used. What about it?
>
> Hummm, I'm not convinced. Whether old tools work would then depend on whether
> somebody wrote to sysfs since boot, which isn't visible anywhere: LTP's
> proc_sched_rt01 would fail again, just only sometimes?
LTP's proc_sched_rt01 (should) fail once you touch sysfs. But we would
have to make sure it is something != EINVAL or else it won't fail.
But yes, if you use the new knob, don't fallback to the old habits.
> Earlier you actually offered:
>
> > I could look into making the sysfs values appear in proc, too.
>
> This might be simpler. For !RT_GROUP_SCHED, procfs could become a view
> of the sysfs_dl_* state, with no second copy. sysctl_sched_rt_* would
> only be needed for RT_GROUP_SCHED (which is marked BROKEN anyway, and
> what we end up with depends on the HCBS discussion).
Yes. I would hope that once we have RT_GROUP_SCHED broken for a year, it
could be removed.
Anyway, if you think it makes it easier to have it mirrored both way,
let me look into it.
Sebastian