Commit 63fb3ec
committed
sched_ext: Allow only user DSQs for scx_bpf_consume(), scx_bpf_dsq_nr_queued() and bpf_iter_scx_dsq_new()
SCX_DSQ_GLOBAL is special in that it can't be used as a priority queue and
is consumed implicitly, but all BPF DSQ related kfuncs could be used on it.
SCX_DSQ_GLOBAL will be split per-node for scalability and those operations
won't make sense anymore. Disallow SCX_DSQ_GLOBAL on scx_bpf_consume(),
scx_bpf_dsq_nr_queued() and bpf_iter_scx_dsq_new(). This means that
SCX_DSQ_GLOBAL can only be used as a dispatch target from BPF schedulers.
With scx_flatcg, which was using SCX_DSQ_GLOBAL as the fallback DSQ,
updated, this shouldn't affect any schedulers.
This leaves find_dsq_for_dispatch() the only user of find_non_local_dsq().
Open code and remove find_non_local_dsq().
Signed-off-by: tejun heo <[email protected]>
Acked-by: David Vernet <[email protected]>1 parent c9c809f commit 63fb3ec
1 file changed
+8
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1808 | 1808 | | |
1809 | 1809 | | |
1810 | 1810 | | |
1811 | | - | |
1812 | | - | |
1813 | | - | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | 1811 | | |
1822 | 1812 | | |
1823 | 1813 | | |
| |||
1835 | 1825 | | |
1836 | 1826 | | |
1837 | 1827 | | |
1838 | | - | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
1839 | 1833 | | |
1840 | 1834 | | |
1841 | 1835 | | |
| |||
6176 | 6170 | | |
6177 | 6171 | | |
6178 | 6172 | | |
6179 | | - | |
| 6173 | + | |
6180 | 6174 | | |
6181 | 6175 | | |
6182 | 6176 | | |
| |||
6497 | 6491 | | |
6498 | 6492 | | |
6499 | 6493 | | |
6500 | | - | |
| 6494 | + | |
6501 | 6495 | | |
6502 | 6496 | | |
6503 | 6497 | | |
| |||
6546 | 6540 | | |
6547 | 6541 | | |
6548 | 6542 | | |
6549 | | - | |
| 6543 | + | |
6550 | 6544 | | |
6551 | 6545 | | |
6552 | 6546 | | |
| |||
0 commit comments