diff options
| author | 2025-10-25 00:01:02 +0200 | |
|---|---|---|
| committer | 2025-10-24 12:20:24 -1000 | |
| commit | 71d7847cad4475f1f795c7737e08b604b448ca70 (patch) | |
| tree | d889a407e771838f0f5a72e3cb249a2d60793686 /include/linux/bcma/ssh:/git@git.zx2c4.com/git: | |
| parent | sched_ext: Use rhashtable_lookup() instead of rhashtable_lookup_fast() (diff) | |
sched_ext: Fix scx_bpf_dsq_peek() with FIFO DSQs
When removing a task from a FIFO DSQ, we must delete it from the list
before updating dsq->first_task, otherwise the following lookup will
just re-read the same task, leaving first_task pointing to removed
entry.
This issue only affects DSQs operating in FIFO mode, as priority DSQs
correctly update the rbtree before re-evaluating the new first task.
Remove the item from the list before refreshing the first task to
guarantee the correct behavior in FIFO DSQs.
Fixes: 44f5c8ec5b9ad ("sched_ext: Add lockless peek operation for DSQs")
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
