[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
Platform: All


External issue ID: 2630

 Description   

In a two-session scenario, it is possible to arrive at a ABBA deadlock, where we acquire locks:
Thread 1 Thread 2
-------- --------
Session A Session B
RIB RIB <-- blocks waiting for Thread 1

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
https://git.opendaylight.org/gerrit/#/c/14339/1

Generated at Wed Feb 07 19:12:16 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.