diff options
author | 2025-03-25 22:41:52 +0000 | |
---|---|---|
committer | 2025-03-26 10:30:36 -1000 | |
commit | a8897ed8523d4c9d782e282b18005a3779c92714 (patch) | |
tree | 3720ef28fa064eed74d91a921169553825dc39f8 /scripts/lib/kdoc/kdoc_output.py | |
parent | sched_ext: Remove a meaningless conditional goto in scx_select_cpu_dfl() (diff) | |
download | linux-rng-a8897ed8523d4c9d782e282b18005a3779c92714.tar.xz linux-rng-a8897ed8523d4c9d782e282b18005a3779c92714.zip |
sched_ext: create_dsq: Return -EEXIST on duplicate request
create_dsq and therefore the scx_bpf_create_dsq kfunc currently silently
ignore duplicate entries. As a sched_ext scheduler is creating each DSQ
for a different purpose this is surprising behaviour.
Replace rhashtable_insert_fast which ignores duplicates with
rhashtable_lookup_insert_fast that reports duplicates (though doesn't
return their value). The rest of the code is structured correctly and
this now returns -EEXIST.
Tested by adding an extra scx_bpf_create_dsq to scx_simple. Previously
this was ignored, now init fails with a -17 code. Also ran scx_lavd
which continued to work well.
Signed-off-by: Jake Hillion <jake@hillion.co.uk>
Acked-by: Andrea Righi <arighi@nvidia.com>
Fixes: f0e1a0643a59 ("sched_ext: Implement BPF extensible scheduler class")
Cc: stable@vger.kernel.org # v6.12+
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions