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/core: Clear prev->dl_server in CFS pick fast path

In case the previous pick was a DL server pick, ->dl_server might be
set. Clear it in the fast path as well.

Fixes: 63ba8422f876 ("sched/deadline: Introduce deadline servers")
Signed-off-by: Youssef Esmat <youssefesmat@google.com>
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Juri Lelli <juri.lelli@redhat.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/7f7381ccba09efcb4a1c1ff808ed58385eccc222.1716811044.git.bristot@kernel.org

authored by

Youssef Esmat and committed by
Peter Zijlstra
a741b824 c2459100

+7
+7
kernel/sched/core.c
··· 5840 5840 } 5841 5841 5842 5842 /* 5843 + * This is a normal CFS pick, but the previous could be a DL pick. 5844 + * Clear it as previous is no longer picked. 5845 + */ 5846 + if (prev->dl_server) 5847 + prev->dl_server = NULL; 5848 + 5849 + /* 5843 5850 * This is the fast path; it cannot be a DL server pick; 5844 5851 * therefore even if @p == @prev, ->dl_server must be NULL. 5845 5852 */