snabbco / snabb

Snabb: Simple and fast packet networking
Apache License 2.0
2.98k stars 301 forks source link

core.group_freelist: fix a deadlock #1494

Closed eugeneia closed 1 year ago

eugeneia commented 1 year ago

core.group_freelist: fix a deadlock

chunk.sequence was not reloaded on further iterations of the loop.

Use sync.load() to explicitly reload lock-free states.

Panic if we fail to progress after 1000 iterations.