Files
asterisk/main
Joshua C. Colp 0452717645 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:36:04 -05:00
..
2019-08-01 15:31:23 -06:00
2020-05-05 08:56:28 -04:00
2016-10-27 09:53:55 -04:00
2020-05-05 08:56:28 -04:00
2020-04-06 10:58:41 -05:00
2019-08-01 15:31:23 -06:00
2020-06-10 09:38:45 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2020-06-10 13:56:45 -05:00
2016-10-27 09:53:55 -04:00
2020-08-13 06:34:45 -05:00
2020-07-07 15:02:45 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2020-06-10 13:56:45 -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 13:56:45 -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 13:56:45 -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:31 -05:00