Files
asterisk/main
Joshua C. Colp 8d6c2221a9 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 04:32:04 -05:00
..
2020-05-05 09:22:51 -05:00
2019-08-01 16:22:01 -05:00
2020-05-05 09:22:51 -05:00
2020-05-05 09:22:51 -05:00
2020-04-06 10:58:11 -05:00
2019-08-01 16:22:01 -05:00
2017-10-24 17:17:53 -04:00
2020-06-10 13:56:03 -05:00
2017-12-20 12:54:13 -05:00
2019-12-17 14:11:52 +00:00
2016-11-01 12:37:58 -05:00
2020-06-10 13:56:03 -05:00
2020-06-10 13:56:03 -05:00
2018-06-23 00:27:06 -06:00
2018-07-20 05:20:25 -06:00