-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clusterer: Fix potential AB/BA sync deadlock on DONOR nodes
This deadlock was reproduced with usrloc, but may also affect other sync-based modules, as follows: ---- sync DONOR node ---- 1) [sync send Worker-1] grabs (A) cluster lock, then (B) usrloc hash lock while building/sending the sync packets 2) [handle SIP REGISTER Worker-2] grabs (B) usrloc hash lock, then (A) cluster lock when replicating data with cl_api.send_all() This patch converts the "A+B" sequence in 1) into a "B,A" sequence. (cherry picked from commit d89f170)
- Loading branch information
1 parent
0a99310
commit f423f90
Showing
3 changed files
with
78 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters