crypto-sw-scheduler: fix queue iterator 65/37465/1
authorVladimir Ratnikov <vratnikov@netgate.com>
Mon, 17 Oct 2022 07:34:14 +0000 (07:34 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 20 Oct 2022 22:13:34 +0000 (22:13 +0000)
commite3618c1960c473f033dd8dcf2dfb0fb4ff661eb0
tree86d2a53a555d229e64b0b3ffa23cdeaaf5249637
parentb807f08d87c1186027bb1266dbd41857d9fcb91a
crypto-sw-scheduler: fix queue iterator

 When there are several workers, iterator can and will skip
head iterator and it will last until BARRIER_SYNC_TIMEOUT won't
expire and will cause SIGABRT with `worker thread deadlock`

Type: fix

Signed-off-by: Vladimir Ratnikov <vratnikov@netgate.com>
Change-Id: Id4def4d5894e077ae27592367b141ecd822e86af
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
(cherry picked from commit 65bff88c3671ec6ee561e70f17c60ea9784a39dd)
src/plugins/crypto_sw_scheduler/main.c