Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-182

Fix a potential deadlock in BGPSession

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Bugzilla Migration
    • Bugzilla Migration
    • BGP
    • None
    • Operating System: All
      Platform: All

    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            dkutenicsova Dana Kutenicsova
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: