Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f4d5d31e9217b6c270f693d847fd714f019f2bb1
      
https://github.com/OpenSIPS/opensips/commit/f4d5d31e9217b6c270f693d847fd714f019f2bb1
  Author: Liviu Chircu <li...@opensips.org>
  Date:   2020-09-03 (Thu, 03 Sep 2020)

  Changed paths:
    M modules/load_balancer/lb_data.c

  Log Message:
  -----------
  load_balancer: Fix AB/BA deadlock in lb_start()

Assuming we have resources A, B, before this patch we would have the
following lock grab order on the corresponding resource locks:
   (see lb_data.c +743):

    lb_start(): A, B
    lb_next(): B, A

This patch fixes this type of deadlock by inverting the resource AVP
elements, such that both functions grab the array locks identically:

    lb_start(): A, B
    lb_next(): A, B



_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to