sched-ext / scx

sched_ext schedulers and tools
https://bit.ly/scx_slack
GNU General Public License v2.0
691 stars 48 forks source link

scx_rustland_core: fix potential race in dispatch_task() #361

Closed arighi closed 2 weeks ago

arighi commented 2 weeks ago

Fix a potential race condition that might lead to a task being dispatched without kicking the target CPU, which could result in a potential stall.

With this applied, scx_rustland has been running without any stall for about 18 hours on a system where the issue was previously quite easy to reproduce.

Moreover, clarify a couple of comments in the dispatch path.

This fixes issue #353.

Tested-by: SoulHarsh007 harsh.peshwani@outlook.com