Commit 50de1d4
committed
sched/dlserver: Fix dlserver time accounting
JIRA: https://issues.redhat.com/browse/RHEL-68342
commit c7f7e9c
Author: Vineeth Pillai (Google) <vineeth@bitbyteword.org>
Date: Thu Dec 12 22:22:37 2024 -0500
sched/dlserver: Fix dlserver time accounting
dlserver time is accounted when:
- dlserver is active and the dlserver proxies the cfs task.
- dlserver is active but deferred and cfs task runs after being picked
through the normal fair class pick.
dl_server_update is called in two places to make sure that both the
above times are accounted for. But it doesn't check if dlserver is
active or not. Now that we have this dl_server_active flag, we can
consolidate dl_server_update into one place and all we need to check is
whether dlserver is active or not. When dlserver is active there is only
two possible conditions:
- dlserver is deferred.
- cfs task is running on behalf of dlserver.
Fixes: a110a81 ("sched/deadline: Deferrable dl server")
Signed-off-by: "Vineeth Pillai (Google)" <vineeth@bitbyteword.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Marcel Ziswiler <marcel.ziswiler@codethink.co.uk> # ROCK 5B
Link: https://lore.kernel.org/r/20241213032244.877029-2-vineeth@bitbyteword.org
Signed-off-by: Phil Auld <pauld@redhat.com>1 parent d8a00f7 commit 50de1d4
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1159 | 1159 | | |
1160 | 1160 | | |
1161 | 1161 | | |
1162 | | - | |
1163 | | - | |
1164 | 1162 | | |
1165 | 1163 | | |
1166 | 1164 | | |
| |||
1237 | 1235 | | |
1238 | 1236 | | |
1239 | 1237 | | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
1243 | 1246 | | |
1244 | | - | |
| 1247 | + | |
1245 | 1248 | | |
1246 | 1249 | | |
1247 | 1250 | | |
| |||
0 commit comments