[BGPCEP-182] Fix a potential deadlock in BGPSession Created: 23/Jan/15 Updated: 03/Mar/19 Resolved: 23/Jan/15 |
|
| Status: | Resolved |
| Project: | bgpcep |
| Component/s: | BGP |
| Affects Version/s: | Bugzilla Migration |
| Fix Version/s: | Bugzilla Migration |
| Type: | Bug | ||
| Reporter: | Dana Kutenicsova | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2630 |
| Description |
|
In a two-session scenario, it is possible to arrive at a ABBA deadlock, where we acquire locks: Session B <-- blocks waiting for Thread 2 The lock is being held only for scheduling a task on Thread 2, which a thread-safe operation, so we can simply remove the need to take the lock in Thread 1. |
| Comments |
| Comment by Dana Kutenicsova [ 23/Jan/15 ] |
|
https://git.opendaylight.org/gerrit/#/c/14340/1 |