diff options
| author | fangqiurong <fangqiurong@kylinos.cn> | 2026-09-17 15:52:42 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-09-17 07:20:17 -1000 |
| commit | 9ec7ba20c97d92fa59b351832aeeb934b3b16177 (patch) | |
| tree | 5920688c0e0676afb1562280c43267bdbe06082b /io_uring/alloc_cache.h | |
| parent | cb86607ada73185f321baa7f9d94a08a3a40bbf5 (diff) | |
| download | linux-stable-9ec7ba20c97d92fa59b351832aeeb934b3b16177.tar.gz linux-stable-9ec7ba20c97d92fa59b351832aeeb934b3b16177.zip | |
selftests/sched_ext: Test that ops.dequeue() can iterate the consumed DSQ
Add a scheduler whose ops.dequeue() iterates the source user DSQ with
bpf_iter_scx_dsq. The iteration takes the DSQ's raw spinlock; on a
kernel that runs ops.dequeue() while the consume path still holds that
lock, the first task consumed self-deadlocks the CPU with IRQs
disabled. The watchdog cannot recover from that state, so on an
unfixed kernel this test wedges the system instead of failing cleanly.
On a fixed kernel the scheduler runs clean and the test passes.
Signed-off-by: fangqiurong <fangqiurong@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'io_uring/alloc_cache.h')
0 files changed, 0 insertions, 0 deletions
