summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/sched_ext/dequeue_iter.bpf.c
AgeCommit message (Collapse)Author
2026-09-17selftests/sched_ext: Test that ops.dequeue() can iterate the consumed DSQfangqiurong
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>