crypto-sw-scheduler: fix queue iterator 30/37430/3
authorVladimir Ratnikov <[email protected]>
Mon, 17 Oct 2022 07:34:14 +0000 (07:34 +0000)
committerFan Zhang <[email protected]>
Thu, 20 Oct 2022 20:47:29 +0000 (20:47 +0000)
commit65bff88c3671ec6ee561e70f17c60ea9784a39dd
treeabb87aa85776e6ff46afe058f033a876186c3e58
parent5569a85a1efd1bb3dd1cfa8ad78d3b3d3db2beec
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 <[email protected]>
Change-Id: Id4def4d5894e077ae27592367b141ecd822e86af
Signed-off-by: Matthew Smith <[email protected]>
src/plugins/crypto_sw_scheduler/main.c