Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

scx: Fix error condition check in __scx_bpf_consume_task() #228

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

htejun
Copy link
Collaborator

@htejun htejun commented Jun 17, 2024

__scx_bpf_consume_task() should test whether the task is still on the DSQ that's being iterated before erroring out if it's on a local DSQ. Otherwise, another racing consumer can move the task to a local DSQ triggering a spurious error. Relocate the error condition.

__scx_bpf_consume_task() should test whether the task is still on the DSQ
that's being iterated before erroring out if it's on a local DSQ. Otherwise,
another racing consumer can move the task to a local DSQ triggering a
spurious error. Relocate the error condition.
@htejun htejun requested a review from Byte-Lab June 17, 2024 20:33
@htejun htejun merged commit 98dde2a into sched_ext Jun 17, 2024
1 check failed
@htejun htejun deleted the htejun/dsq-iter-fix branch June 17, 2024 20:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants