]> git.ipfire.org Git - thirdparty/linux.git/commit
sched: Deadline has dynamic priority
authorPeter Zijlstra <peterz@infradead.org>
Thu, 15 Jan 2026 08:25:37 +0000 (09:25 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 15 Jan 2026 20:57:53 +0000 (21:57 +0100)
commite008ec6c7904ed99d3b2cb634b6545b008a99288
treeb73bd5064e7d484ba4a241a1f16c0471a3e8ddb0
parent53439363c0a111f11625982b69c88ee2ce8608ec
sched: Deadline has dynamic priority

While FIFO/RR have static priority, DEADLINE is a dynamic priority
scheme. Notably it has static priority -1. Do not assume the priority
doesn't change for deadline tasks just because the static priority
doesn't change.

This ensures DL always sees {DE,EN}QUEUE_MOVE where appropriate.

Fixes: ff77e4685359 ("sched/rt: Fix PI handling vs. sched_setscheduler()")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Pierre Gondois <pierre.gondois@arm.com>
Tested-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://patch.msgid.link/20260114130528.GB831285@noisy.programming.kicks-ass.net
kernel/sched/core.c
kernel/sched/syscalls.c