]> git.baikalelectronics.ru Git - kernel.git/commit
sched/deadline: Don't replenish from a !SCHED_DEADLINE entity
authorJuri Lelli <juri.lelli@arm.com>
Fri, 24 Oct 2014 09:16:37 +0000 (10:16 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 28 Oct 2014 09:46:00 +0000 (10:46 +0100)
commit88847a48d5b7b73fb21e9524c07c2932e4ade19f
tree7f35a4ab8b313cac8bd882aa5595689167051857
parent06dc103d9d1f0a156a500c36d3efbaba299ebbc0
sched/deadline: Don't replenish from a !SCHED_DEADLINE entity

In the deboost path, right after the dl_boosted flag has been
reset, we can currently end up replenishing using -deadline
parameters of a !SCHED_DEADLINE entity. This of course causes
a bug, as those parameters are empty.

In the case depicted above it is safe to simply bail out, as
the deboosted task is going to be back to its original scheduling
class anyway.

Reported-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Tested-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: vincent@legout.info
Cc: Dario Faggioli <raistlin@linux.it>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Cc: Fabio Checconi <fchecconi@gmail.com>
Link: http://lkml.kernel.org/r/1414142198-18552-4-git-send-email-juri.lelli@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/deadline.c