Commit 3fdb9eb
committed
sched_ext: Start schedulers with consistent p->scx.slice values
The disable path caps p->scx.slice to SCX_SLICE_DFL. As the field is already
being ignored at this stage during disable, the only effect this has is that
when the next BPF scheduler is loaded, it won't see unreasonable left-over
slices. Ultimately, this shouldn't matter but it's better to start in a
known state. Drop p->scx.slice capping from the disable path and instead
reset it to SCX_SLICE_DFL in the enable path.
Signed-off-by: Tejun Heo <[email protected]>
Acked-by: David Vernet <[email protected]>1 parent 54baa7a commit 3fdb9eb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4473 | 4473 | | |
4474 | 4474 | | |
4475 | 4475 | | |
4476 | | - | |
4477 | 4476 | | |
4478 | 4477 | | |
4479 | 4478 | | |
| |||
5190 | 5189 | | |
5191 | 5190 | | |
5192 | 5191 | | |
| 5192 | + | |
5193 | 5193 | | |
5194 | 5194 | | |
5195 | 5195 | | |
| |||
0 commit comments