Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: fix double decrement of hsm requests
Motivation: If hsm requests completed twice due to a bug or a race condition, then `AbstractRequest#removeFromQueue` can be called twice. As removeFromQueue uses `state#get` then two competing requests might get the same value and introduce double decrement. Modification: Add new state 'REMOVED' that with get-and-set semantic avoids double decrement situation. Result: Fix double decrement on active hsm requests Fixes: #7511 Acked-by: Dmitry Litvintsev Target: master, 10.1, 10.0, 9.2 Require-book: no Require-notes: yes (cherry picked from commit daad2ab) Signed-off-by: Tigran Mkrtchyan <[email protected]>
- Loading branch information