diff options
| author | Tianyi Chen <hi@tychen.cc> | 2026-09-06 22:40:44 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-09-08 07:58:30 -1000 |
| commit | 570355c81dbf3bc88e45e3ce5b3f5938cfda11bb (patch) | |
| tree | ce308be84ac24a8b4a437afa2cc41b89821f46d2 /tools/perf/scripts/python/bin | |
| parent | 49c64ffb2fd996af4c82007196c61e17d74cb1ab (diff) | |
selftests/sched_ext: Cover duplicate DSQ creation and ID reuse
The create_dsq test creates and destroys queues, but does not check the
-EEXIST contract for duplicate creation or whether the ID remains
accessible after the failed operation.
Extend the existing lifecycle loop to reject duplicate creation and
check that the empty queue is still accessible. After destruction,
require -ENOENT from the queue lookup, then recreate and destroy the
same ID. Check that all 1024 iterations complete.
This exercises empty queues during initialization, without concurrent
enqueueing or destruction of a nonempty queue. The create_dsq test
passes on a two-CPU matching-kernel VM.
Link: https://lore.kernel.org/all/Z-OZ7tJWhRZbUk1l@gpd3/
Assisted-by: LLM
Signed-off-by: Tianyi Chen <hi@tychen.cc>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
