Re: [PATCH v4 2/6] sched: Move DL's admission control to sysfs
From: Juri Lelli
Date: Tue Nov 24 2026 - 02:31:09 EST
Hello,
On 23/11/26 14:41, Sebastian Andrzej Siewior wrote:
...
> @@ -2882,26 +2881,18 @@ static int sched_rt_handler(const struct ctl_table *table, int write, void *buff
> if (ret)
> goto undo;
>
> - ret = sched_dl_global_validate();
> + ret = sched_dl_try_boundary(sysctl_sched_rt_runtime,
> + sysctl_sched_rt_period);
> if (ret)
> goto undo;
> -
> - sched_dl_do_global();
Nothing updates sysctl_sched_rt_{period,runtime} when the sysfs files
are written, but this always passes both, so a procfs write of one knob
resets the other to its stale sysctl value? E.g. write 2000000 to
dl_period_us, then -1 to sched_rt_runtime_us: admission control is
disabled as expected, but sysctl_sched_rt_period is still 1000000 and
the period is back to 1s.
Thanks,
Juri