Skip to content

Commit 22368fe

Browse files
jlelliPeter Zijlstra
authored and
Peter Zijlstra
committed
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: a110a81 ("sched/deadline: Deferrable dl server") Signed-off-by: Juri Lelli <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
1 parent 40384c8 commit 22368fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/deadline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ static inline void replenish_dl_new_period(struct sched_dl_entity *dl_se,
781781
* If it is a deferred reservation, and the server
782782
* is not handling an starvation case, defer it.
783783
*/
784-
if (dl_se->dl_defer & !dl_se->dl_defer_running) {
784+
if (dl_se->dl_defer && !dl_se->dl_defer_running) {
785785
dl_se->dl_throttled = 1;
786786
dl_se->dl_defer_armed = 1;
787787
}

0 commit comments

Comments
 (0)