]> git.ipfire.org Git - thirdparty/linux.git/commit
sched/deadline: Fix server stopping with runnable tasks
authorGabriele Monaco <gmonaco@redhat.com>
Tue, 13 Jan 2026 08:52:01 +0000 (09:52 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 13 Jan 2026 10:37:52 +0000 (11:37 +0100)
commitca1e8eede4fc68ce85a9fdce1a6c13ad64933318
tree0c292186d6032b6844f0867ac4ef6d48ed006e12
parent1e0a2ba7afb1b60f02599093d84b72ce62ad11c0
sched/deadline: Fix server stopping with runnable tasks

The deadline server can currently stop due to idle although fair tasks
are runnable. This happens essentially when:

 * the server is set to idle, a task wakes up, the server stops
 * a task wakes up, the server sets itself to idle and stops right away

Address both cases by clearing the server idle flag whenever a fair task
wakes up and accounting also for pending tasks in the definition of idle.

Fixes: f5a538c07df2 ("sched/deadline: Fix dl_server stop condition")
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260113085159.114226-3-gmonaco@redhat.com
kernel/sched/deadline.c