Skip to content
Snippets Groups Projects
Commit 9c3308f1 authored by Avi Kivity's avatar Avi Kivity Committed by Pekka Enberg
Browse files

sched: fix iteration across timer list


We iterate over the timer list using an iterator, but the timer list can
change during iteration due to timers being re-inserted.

Switch to just looking at the head of the list instead, maintaining no
state across loop iterations.

Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
Tested-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent 870d8410
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment