summaryrefslogtreecommitdiffstats
path: root/lib/trace_readwrite.c
diff options
context:
space:
mode:
authorfangqiurong <fangqiurong@kylinos.cn>2026-09-17 15:52:42 +0800
committerTejun Heo <tj@kernel.org>2026-09-17 07:20:17 -1000
commit9ec7ba20c97d92fa59b351832aeeb934b3b16177 (patch)
tree5920688c0e0676afb1562280c43267bdbe06082b /lib/trace_readwrite.c
parentcb86607ada73185f321baa7f9d94a08a3a40bbf5 (diff)
downloadlinux-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 'lib/trace_readwrite.c')
0 files changed, 0 insertions, 0 deletions