]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched/core: Fix priority checking for DL server picks
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Mon, 27 May 2024 12:06:53 +0000 (14:06 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 29 Jul 2024 10:22:36 +0000 (12:22 +0200)
commit4b26cfdd395638918e370f62bd2c33e6f63ffb5e
tree0078817ceec817f25e921d97f7793b4714f53d22
parentd741f297bceaf52aa1b97b997708fc0cd853c73e
sched/core: Fix priority checking for DL server picks

In core scheduling, a DL server pick (which is CFS task) should be
given higher priority than tasks in other classes.

Not doing so causes CFS starvation. A kselftest is added later to
demonstrate this.  A CFS task that is competing with RT tasks can
be completely starved without this and the DL server's boosting
completely ignored.

Fix these problems.

Reported-by: Suleiman Souhlal <suleiman@google.com>
Signed-off-by: "Joel Fernandes (Google)" <joel@joelfernandes.org>
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vineeth Pillai <vineeth@bitbyteword.org>
Tested-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://lore.kernel.org/r/48b78521d86f3b33c24994d843c1aad6b987dda9.1716811044.git.bristot@kernel.org
kernel/sched/core.c