Files
asterisk/main
Joshua C. Colp 28bae5e901 pbx: Fix hints deadlock between reload and ExtensionState.
When the ExtensionState AMI action is executed on a pattern matched
hint it can end up adding a new hint if one does not already exist.
This results in a locking order of contexts -> hints -> contexts.

If at the same time a reload is occurring and adding its own hint
it will have a locking order of hints -> contexts.

This results in a deadlock as one thread wants a lock on contexts
that the other has, and the other thread wants a lock on hints
that the other has.

This change enforces a hints -> contexts locking order by explicitly
locking hints in the places where a hint is added when queried for.
This matches the order seen through normal adding of hints.

ASTERISK-29046

Change-Id: I49f027f4aab5d2d50855ae937bcf5e2fd8bfc504
2020-08-28 12:37:24 -05:00
..
2019-08-01 15:31:48 -06:00
2020-05-05 10:06:43 -05:00
2016-10-27 09:53:55 -04:00
2020-05-05 10:06:43 -05:00
2020-04-06 10:23:20 -05:00
2019-08-01 15:31:48 -06:00
2020-08-18 05:16:43 -05:00
2020-06-10 09:31:38 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2020-06-10 09:33:28 -05:00
2016-10-27 09:53:55 -04:00
2020-08-18 05:16:43 -05:00
2020-08-18 05:16:43 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2020-06-10 09:33:28 -05:00
2016-10-27 09:53:55 -04:00
2017-12-20 12:40:01 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2020-06-10 09:33:28 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2020-06-10 09:33:28 -05:00
2020-06-10 09:33:28 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2018-06-23 08:26:19 +02:00
2018-07-23 06:47:20 -05:00