Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched/deadline: Fix replenish_dl_new_period dl_server condition

The condition in replenish_dl_new_period() that checks if a reservation
(dl_server) is deferred and is not handling a starvation case is
obviously wrong.

Fix it.

Fixes: a110a81c52a9 ("sched/deadline: Deferrable dl server")
Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20241127063740.8278-1-juri.lelli@redhat.com

authored by

Juri Lelli and committed by
Peter Zijlstra
22368fe1 40384c84

+1 -1
+1 -1
kernel/sched/deadline.c
··· 781 781 * If it is a deferred reservation, and the server 782 782 * is not handling an starvation case, defer it. 783 783 */ 784 - if (dl_se->dl_defer & !dl_se->dl_defer_running) { 784 + if (dl_se->dl_defer && !dl_se->dl_defer_running) { 785 785 dl_se->dl_throttled = 1; 786 786 dl_se->dl_defer_armed = 1; 787 787 }